mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-29 03:11:33 +00:00
Process space separated triggers individually
This commit is contained in:
parent
b6888c2716
commit
20a64cadef
@ -167,23 +167,24 @@ 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
|
||||||
if status is None:
|
for trigger in triggers.split():
|
||||||
# still running => pending
|
if status is None:
|
||||||
arch_list = self.pending_tests.setdefault(trigger, {}).setdefault(src, [])
|
# still running => pending
|
||||||
if arch not in arch_list:
|
arch_list = self.pending_tests.setdefault(trigger, {}).setdefault(src, [])
|
||||||
self.logger.info('Pending autopkgtest %s on %s to verify %s',src, arch, trigger)
|
if arch not in arch_list:
|
||||||
arch_list.append(arch)
|
self.logger.info('Pending autopkgtest %s on %s to verify %s',src, arch, trigger)
|
||||||
arch_list.sort()
|
arch_list.append(arch)
|
||||||
elif status == 'tmpfail':
|
arch_list.sort()
|
||||||
# let's see if we still need it
|
elif status == 'tmpfail':
|
||||||
continue
|
# let's see if we still need it
|
||||||
else:
|
continue
|
||||||
self.logger.info('Results %s %s %s added', src, trigger, status)
|
else:
|
||||||
self.add_trigger_to_results(trigger, src, ver, arch, stamp, Result[status.upper()])
|
self.logger.info('Results %s %s %s added', src, trigger, status)
|
||||||
|
self.add_trigger_to_results(trigger, src, ver, arch, stamp, Result[status.upper()])
|
||||||
else:
|
else:
|
||||||
self.logger.info('%s does not exist, no new data will be processed', debci_file)
|
self.logger.info('%s does not exist, no new data will be processed', debci_file)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user