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: else:
result = 'ALWAYSFAIL' result = 'ALWAYSFAIL'
url = os.path.join(self.options.adt_swift_url, if self.options.adt_swift_url.startswith('file://'):
self.swift_container, url = os.path.join(self.options.adt_ci_url,
self.options.series, 'data',
arch, 'autopkgtest',
srchash(src), self.options.series,
src, arch,
run_id, srchash(src),
'log.gz') 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: except KeyError:
# no result for src/arch; still running? # no result for src/arch; still running?
if arch in self.pending_tests.get(trigger, {}).get(src, []): if arch in self.pending_tests.get(trigger, {}).get(src, []):

Loading…
Cancel
Save