scripts: twister: config_parser: copy common values
Create copys of the common configuration values when constructing test scenarios, to avoid mutating the common value with test specific appends. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
c30c9b97b4
commit
31200fb33d
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
# Copyright (c) 2018-2022 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import copy
|
||||
import scl
|
||||
import warnings
|
||||
from typing import Union
|
||||
|
@ -176,7 +177,8 @@ class TwisterConfigParser:
|
|||
{"CONF_FILE", "OVERLAY_CONFIG", "DTC_OVERLAY_FILE"}, v
|
||||
)
|
||||
else:
|
||||
d[k] = v
|
||||
# Copy common value to avoid mutating it with test specific values below
|
||||
d[k] = copy.copy(v)
|
||||
|
||||
for k, v in self.scenarios[name].items():
|
||||
if k == "extra_args":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue