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

Loading…
Cancel
Save