autopkgtest: Move field creation into __init__

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 6 years ago
parent 31db506e39
commit 4eb038ab6d
No known key found for this signature in database
GPG Key ID: A65B78DBE67C7AAC

@ -81,6 +81,7 @@ class AutopkgtestPolicy(BasePolicy):
self.pending_tests = None
self.pending_tests_file = os.path.join(self.state_dir, 'autopkgtest-pending.json')
self.testsuite_triggers = {}
self.result_in_baseline_cache = collections.defaultdict(dict)
# results map: trigger -> src -> arch -> [passed, version, run_id]
# - trigger is "source/version" of an unstable package that triggered
@ -134,8 +135,6 @@ class AutopkgtestPolicy(BasePolicy):
# Make adt_baseline optional
setattr(self.options, 'adt_baseline', None)
self.result_in_baseline_cache = collections.defaultdict(dict)
# read the cached results that we collected so far
if os.path.exists(self.results_cache_file):
with open(self.results_cache_file) as f:

Loading…
Cancel
Save