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