autopkgtest: minor change

reorder adding trigger vs removing
making two stings in the code more readable
ubuntu/rebased
Paul Gevers 7 years ago
parent d6f713b8a1
commit fc5eacf7d1
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -131,9 +131,9 @@ class AutopkgtestPolicy(BasePolicy):
if res['version'] is None:
res['version'] = '0'
(trigger, src, arch, ver, passed, stamp) = ([res['trigger'], res['package'], res['arch'], res['version'], res['status'] == 'pass', res['run_id']])
self.remove_from_pending(trigger, src, arch)
self.add_trigger_to_results(trigger, src, ver, arch, stamp, passed)
self.log('Checking if britney\'s pending tests are known to debci')
self.remove_from_pending(trigger, src, arch)
self.log("Checking if britney's pending tests are known to debci")
pending_tests = copy.deepcopy(self.pending_tests) # copy because we may change the content
for trigger in pending_tests:
for package in pending_tests[trigger]:
@ -144,7 +144,7 @@ class AutopkgtestPolicy(BasePolicy):
found = True
break
if not found:
self.log('Removing %s for %s on %s from britney\'s pending list as it isn\'t on debci\'s list' % (package, trigger, arch), 'W')
self.log("Removing %s for %s on %s from britney's pending list as it isn't on debci's list" % (package, trigger, arch), 'W')
self.remove_from_pending(trigger, package, arch)
else:
self.log('%s does not exist, no new data will be processed' %

Loading…
Cancel
Save