From 075d4d823ba2ebc2f3dfaeeab691c8eb3997f078 Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Sun, 23 Dec 2018 22:12:42 +0100 Subject: [PATCH] autopkgtest: fix copy() in save_state --- 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 f0b8a73..e0b1532 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -17,6 +17,7 @@ # GNU General Public License for more details. import collections +from copy import deepcopy from enum import Enum import os import json @@ -222,7 +223,7 @@ class AutopkgtestPolicy(BasePolicy): # update the results on-disk cache, unless we are using a r/o shared one if not self.options.adt_shared_results_cache: self.logger.info('Updating results cache') - results = self.test_results.copy() + results = deepcopy(self.test_results) for trigger in results.values(): for arch in trigger.values(): for result in arch.values():