diff options
author | Tibor Frank <tifrank@cisco.com> | 2021-03-04 12:30:07 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2021-03-12 07:51:28 +0100 |
commit | 093e1a0bfa7257048e6d12fe9fc9fbf1a9f98e49 (patch) | |
tree | aa4850943fd1cbc4d6e1ed96ef4804ca018b6df9 /resources/tools/presentation/input_data_parser.py | |
parent | 519119450555deecd40ee5d89e3d8a274c831b02 (diff) |
PAL: Optimize specification of elements
- plot_mrr_box_name
- plot_ndrpdr_box_name
- plot_perf_box_name
- plot_tsa_name
- plot_nf_reconf_box_name
- plot_nf_heatmap
- plot_cpta
Change-Id: I28ff2ea0e4f610e5ce48ffd083bf9a37bdc2f62d
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/input_data_parser.py')
-rw-r--r-- | resources/tools/presentation/input_data_parser.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py index cc98bb702f..b6b93018df 100644 --- a/resources/tools/presentation/input_data_parser.py +++ b/resources/tools/presentation/input_data_parser.py @@ -1954,16 +1954,25 @@ class InputData: if params is None: params = element.get(u"parameters", None) - if params: + if params and u"type" not in params: params.append(u"type") + cores = element.get(u"core", None) + if cores: + tests = list() + for core in cores: + for test in include: + tests.append(test.format(core=core)) + else: + tests = include + data = pd.Series() try: for job, builds in element[u"data"].items(): data[job] = pd.Series() for build in builds: data[job][str(build)] = pd.Series() - for test in include: + for test in tests: try: reg_ex = re.compile(str(test).lower()) for test_id in self.data[job][ |