From 672b8a578f4083388e53027b27334232d4e86641 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Wed, 10 Jun 2020 16:48:31 +0100 Subject: [PATCH] autopkgtest: Allow `adt_reference_max_age` to be empty --- britney2/policies/autopkgtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index b3c6dc5..2ae7ea8 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -179,7 +179,8 @@ class AutopkgtestPolicy(BasePolicy): # Make adt_baseline optional 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') else: self.options.adt_reference_max_age = \