mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
framework/configuration: fix workload config with multiple sections
When an agenda contains multiple sections, the same workload entry might be used in construction of multiple job specs. Job spec construction may mangle the workload entry. To prevent this from impacting other jobs, use a deep copy of the workload entry when constructing a job spec.
This commit is contained in:
parent
c96181bed7
commit
261417a9db
@ -14,7 +14,7 @@
|
||||
|
||||
import os
|
||||
import re
|
||||
from copy import copy
|
||||
from copy import copy, deepcopy
|
||||
from collections import OrderedDict, defaultdict
|
||||
|
||||
from wa.framework.exception import ConfigError, NotFoundError
|
||||
@ -1042,7 +1042,7 @@ class JobGenerator(object):
|
||||
sections.insert(0, ancestor)
|
||||
|
||||
for workload_entry in workload_entries:
|
||||
job_spec = create_job_spec(workload_entry, sections,
|
||||
job_spec = create_job_spec(deepcopy(workload_entry), sections,
|
||||
target_manager, self.plugin_cache,
|
||||
self.disabled_instruments)
|
||||
if self.ids_to_run:
|
||||
|
Loading…
x
Reference in New Issue
Block a user