From 0ff44d90e7b9b3f44e80cc0b41af548a37242dfd Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Tue, 11 Dec 2018 09:44:55 +0000 Subject: [PATCH] autopkgtest: Handle status '8' as a pass This means 'all tests were skipped', or 'no tests in this package'. The former case is new after our recent autopkgtest rebase. Upstream britney (624b185ba60709f1686fbaa2a7623a94c5cb23ef) handles this as "neutral", which doesn't influence the result and is a more explicit (better) way of expressing this situation. Once we rebase, we should take that approach. --- 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 74834f8..dc53a74 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -554,7 +554,7 @@ class AutopkgtestPolicy(BasePolicy): stamp = os.path.basename(os.path.dirname(url)) # allow some skipped tests, but nothing else - passed = exitcode in [0, 2] + passed = exitcode in [0, 2, 8] self.log('Fetched test result for %s/%s/%s %s (triggers: %s): %s' % ( src, ver, arch, stamp, result_triggers, passed and 'pass' or 'fail'))