Enable correct result file url for Debian

ubuntu/rebased
Paul Gevers 7 years ago
parent 93ca29c3aa
commit d59538a514
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -759,14 +759,25 @@ class AutopkgtestPolicy(BasePolicy):
else:
result = 'ALWAYSFAIL'
url = os.path.join(self.options.adt_swift_url,
self.swift_container,
self.options.series,
arch,
srchash(src),
src,
run_id,
'log.gz')
if self.options.adt_swift_url.startswith('file://'):
url = os.path.join(self.options.adt_ci_url,
'data',
'autopkgtest',
self.options.series,
arch,
srchash(src),
src,
run_id,
'log.gz')
else:
url = os.path.join(self.options.adt_swift_url,
self.swift_container,
self.options.series,
arch,
srchash(src),
src,
run_id,
'log.gz')
except KeyError:
# no result for src/arch; still running?
if arch in self.pending_tests.get(trigger, {}).get(src, []):

Loading…
Cancel
Save