autopkgtest: Allow `adt_reference_max_age` to be empty

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

@ -179,7 +179,8 @@ class AutopkgtestPolicy(BasePolicy):
# Make adt_baseline optional # Make adt_baseline optional
setattr(self.options, 'adt_baseline', None) setattr(self.options, 'adt_baseline', None)
if not hasattr(self.options, 'adt_reference_max_age'): if not hasattr(self.options, 'adt_reference_max_age') or \
not self.options.adt_reference_max_age:
self.options.adt_reference_max_age = float('inf') self.options.adt_reference_max_age = float('inf')
else: else:
self.options.adt_reference_max_age = \ self.options.adt_reference_max_age = \

Loading…
Cancel
Save