autopkgtest: fix copy() in save_state

ubuntu/rebased
Paul Gevers 6 years ago
parent c6c5c45287
commit 075d4d823b
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -17,6 +17,7 @@
# GNU General Public License for more details. # GNU General Public License for more details.
import collections import collections
from copy import deepcopy
from enum import Enum from enum import Enum
import os import os
import json import json
@ -222,7 +223,7 @@ class AutopkgtestPolicy(BasePolicy):
# update the results on-disk cache, unless we are using a r/o shared one # update the results on-disk cache, unless we are using a r/o shared one
if not self.options.adt_shared_results_cache: if not self.options.adt_shared_results_cache:
self.logger.info('Updating results cache') self.logger.info('Updating results cache')
results = self.test_results.copy() results = deepcopy(self.test_results)
for trigger in results.values(): for trigger in results.values():
for arch in trigger.values(): for arch in trigger.values():
for result in arch.values(): for result in arch.values():

Loading…
Cancel
Save