From bfa5c9f191cbdab4d651c6fa114858bc1f205929 Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Wed, 25 Jul 2018 18:06:29 +0200 Subject: [PATCH] Don't show excuses for packages that are PASS, NEUTRAL, RUNNING-ALWAYSFAIL or ALWAYSFAIL --- britney2/policies/autopkgtest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index 04f0dcb..e92eb16 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -327,8 +327,10 @@ class AutopkgtestPolicy(BasePolicy): message += ' [artifacts]' % artifact_url html_archmsg.append(message) - # render HTML line for testsrc entry - excuse.addhtml("autopkgtest for %s: %s" % (testname, ', '.join(html_archmsg))) + # render HTML line for testsrc entry, but only when action is + # or may be required + if r - {'PASS', 'NEUTRAL', 'RUNNING-ALWAYSFAIL', 'ALWAYSFAIL'}: + excuse.addhtml("autopkgtest for %s: %s" % (testname, ', '.join(html_archmsg))) if verdict != PolicyVerdict.PASS: # check for force-skiptest hint