mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-13 18:51:35 +00:00
autopkgtest: fix copy() in save_state
This commit is contained in:
parent
c6c5c45287
commit
075d4d823b
@ -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…
x
Reference in New Issue
Block a user