autopkgtest: Only request reference tests when we want them

ubuntu/dry-run
Iain Lane 5 years ago committed by Iain Lane
parent e5b7f5f539
commit 27c2476e8f

@ -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