Make test logs also not hit redis for the actual log data unless the flag is specified
This commit is contained in:
parent
bebb02c800
commit
8ada6f0d50
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Reference in a new issue