From 67becb2aec56a4b28baa053841fdf1a1063e695a Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Mon, 19 Mar 2018 20:23:26 +0100 Subject: [PATCH] autopkgtest: in the final API, run_id is a number, convert it to string internally --- britney2/policies/autopkgtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index f75a268..5c85ca1 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -131,7 +131,7 @@ class AutopkgtestPolicy(BasePolicy): # Blacklisted tests don't get a version if res['version'] is None: res['version'] = 'blacklisted' - (trigger, src, arch, ver, passed, stamp) = ([res['trigger'], res['package'], res['arch'], res['version'], res['status'] == 'pass', res['run_id']]) + (trigger, src, arch, ver, passed, stamp) = ([res['trigger'], res['package'], res['arch'], res['version'], res['status'] == 'pass', str(res['run_id'])]) self.add_trigger_to_results(trigger, src, ver, arch, stamp, passed) self.remove_from_pending(trigger, src, arch) self.log("Checking if britney's pending tests are known to debci")