From 50673de2d80eed239af50ec51a6bda33f36b42d7 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 17 Sep 2015 09:32:35 +0200 Subject: [PATCH] autopkgtest: Check for new results on a per-architecture granularity In collect(), check if there are new results for failed tests on a per-architecture level. This updates results while tests for other architectures are still in progress (i. e. in self.pending_tests). --- autopkgtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autopkgtest.py b/autopkgtest.py index ed3ba08..b87f3fd 100644 --- a/autopkgtest.py +++ b/autopkgtest.py @@ -555,8 +555,8 @@ class AutoPackageTest(object): # also update results for excuses whose tests failed, in case a # manual retry worked for (trigpkg, trigver) in packages: - if trigpkg not in self.pending_tests: - for (pkg, arch) in self.failed_tests_for_trigger(trigpkg, trigver): + for (pkg, arch) in self.failed_tests_for_trigger(trigpkg, trigver): + if arch not in self.pending_tests.get(trigpkg, {}).get(trigver, {}): self.log_verbose('Checking for new results for failed %s on %s for trigger %s/%s' % (pkg, arch, trigpkg, trigver)) self.fetch_swift_results(self.britney.options.adt_swift_url, pkg, arch, (trigpkg, trigver))