mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-05 06:41:33 +00:00
Fix logic in exception handling of unknown autopkgtest results
This commit is contained in:
parent
597eac6130
commit
f03f59548d
@ -685,16 +685,14 @@ class AutopkgtestPolicy(BasePolicy):
|
|||||||
raise KeyError # fall through
|
raise KeyError # fall through
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# Without swift we don't expect new results
|
# Without swift we don't expect new results
|
||||||
if self.options.adt_swift_url.startswith('file://'):
|
if not self.options.adt_swift_url.startswith('file://'):
|
||||||
pass
|
self.fetch_swift_results(self.options.adt_swift_url, src, arch)
|
||||||
|
# do we have one now?
|
||||||
self.fetch_swift_results(self.options.adt_swift_url, src, arch)
|
try:
|
||||||
# do we have one now?
|
self.test_results[trigger][src][arch]
|
||||||
try:
|
return
|
||||||
self.test_results[trigger][src][arch]
|
except KeyError:
|
||||||
return
|
pass
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
# Don't re-request if it's already pending
|
# Don't re-request if it's already pending
|
||||||
arch_list = self.pending_tests.setdefault(trigger, {}).setdefault(src, [])
|
arch_list = self.pending_tests.setdefault(trigger, {}).setdefault(src, [])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user