autopkgtest: Only request reference tests when we want them

ubuntu/rebased
Iain Lane 5 years ago committed by Iain Lane
parent c1177a331a
commit 27bf48dcb1
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

@ -1126,9 +1126,13 @@ class AutopkgtestPolicy(BasePolicy):
except KeyError: except KeyError:
pass pass
if test_in_target: if test_in_target:
self.request_test_if_not_queued(src, arch, REF_TRIG) # If we want reference tests, request here
if baseline_result == Result.NONE: if self.options.adt_baseline == 'reference':
result = 'RUNNING-REFERENCE' self.request_test_if_not_queued(src, arch, REF_TRIG)
if baseline_result == Result.NONE:
result = 'RUNNING-REFERENCE'
else:
result = 'ALWAYSFAIL'
else: else:
result = 'ALWAYSFAIL' result = 'ALWAYSFAIL'
else: else:

Loading…
Cancel
Save