Process space separated triggers individually

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

@ -167,10 +167,11 @@ class AutopkgtestPolicy(BasePolicy):
# Blacklisted tests don't get a version # Blacklisted tests don't get a version
if res['version'] is None: if res['version'] is None:
res['version'] = 'blacklisted' res['version'] = 'blacklisted'
(trigger, src, arch, ver, status, stamp) = ([res['trigger'], res['package'], res['arch'], res['version'], res['status'], str(res['run_id'])]) (triggers, src, arch, ver, status, stamp) = ([res['trigger'], res['package'], res['arch'], res['version'], res['status'], str(res['run_id'])])
if trigger is None: if triggers is None:
# not requested for this policy, so ignore # not requested for this policy, so ignore
continue continue
for trigger in triggers.split():
if status is None: if status is None:
# still running => pending # still running => pending
arch_list = self.pending_tests.setdefault(trigger, {}).setdefault(src, []) arch_list = self.pending_tests.setdefault(trigger, {}).setdefault(src, [])

Loading…
Cancel
Save