Make test logs also not hit redis for the actual log data unless the flag is specified

This commit is contained in:
Joseph Schorr 2014-07-11 12:05:33 -04:00
parent bebb02c800
commit 8ada6f0d50

View file

@ -180,6 +180,8 @@ class TestBuildLogs(RedisBuildLogs):
def get_log_entries(self, build_id, start_index):
if build_id == self.test_build_id:
return (len(self._logs), self._logs[start_index:])
elif not self.allow_delegate:
return None
else:
return super(TestBuildLogs, self).get_log_entries(build_id, start_index)