From 9790dbf7c2a8760ee5d50ab8bdd834440a007c3a Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Mon, 5 Mar 2018 13:53:14 +0100 Subject: [PATCH] Don't reward bounty while tests are running or are always-failed --- britney2/policies/autopkgtest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index f9230e5..83b7c8f 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -227,8 +227,9 @@ class AutopkgtestPolicy(BasePolicy): testver = None # Keep track if this source package has tests of its own for the - # bounty system - if testsrc == source_name: + # bounty system, but only if at least one arch has something else than + # running or alwaysfail + if testsrc == source_name and r - {'RUNNING', 'RUNNING-ALWAYSFAIL', 'ALWAYSFAIL'}: src_has_own_test = True html_archmsg = []