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,11 +1126,15 @@ class AutopkgtestPolicy(BasePolicy):
except KeyError: except KeyError:
pass pass
if test_in_target: if test_in_target:
# If we want reference tests, request here
if self.options.adt_baseline == 'reference':
self.request_test_if_not_queued(src, arch, REF_TRIG) self.request_test_if_not_queued(src, arch, REF_TRIG)
if baseline_result == Result.NONE: if baseline_result == Result.NONE:
result = 'RUNNING-REFERENCE' result = 'RUNNING-REFERENCE'
else: else:
result = 'ALWAYSFAIL' result = 'ALWAYSFAIL'
else:
result = 'ALWAYSFAIL'
else: else:
result = 'REGRESSION' result = 'REGRESSION'
else: else:

Loading…
Cancel
Save