From 27bf48dcb1c728b5ef0cf0f1ee0d43a8667f5662 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Tue, 9 Jun 2020 11:55:51 +0100 Subject: [PATCH] autopkgtest: Only request reference tests when we want them --- britney2/policies/autopkgtest.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index 18ae07c..757f681 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -1126,9 +1126,13 @@ class AutopkgtestPolicy(BasePolicy): except KeyError: pass if test_in_target: - self.request_test_if_not_queued(src, arch, REF_TRIG) - if baseline_result == Result.NONE: - result = 'RUNNING-REFERENCE' + # If we want reference tests, request here + if self.options.adt_baseline == 'reference': + self.request_test_if_not_queued(src, arch, REF_TRIG) + if baseline_result == Result.NONE: + result = 'RUNNING-REFERENCE' + else: + result = 'ALWAYSFAIL' else: result = 'ALWAYSFAIL' else: