[dts] [PATCH V1] framework: execution file crbs match item changed
Marvin Liu
yong.liu at intel.com
Mon Jun 12 08:02:37 CEST 2017
CRBs name in execution file changed from DUT IP to Section name in
crbs.conf.
It will be helpful for creating multiple executions on same DUT.
Signed-off-by: Marvin Liu <yong.liu at intel.com>
diff --git a/framework/config.py b/framework/config.py
index 6c3a3b0..8d44bfe 100644
--- a/framework/config.py
+++ b/framework/config.py
@@ -208,6 +208,7 @@ class CrbsConf(UserConf):
for name in sections:
crb = self.DEF_CRB.copy()
+ crb['section'] = name
crb_confs = self.crbs_conf.load_section(name)
if not crb_confs:
continue
diff --git a/framework/dts.py b/framework/dts.py
index 2bb133b..3849866 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -498,14 +498,14 @@ def run_all(config_file, pkgName, git, patch, skip_setup,
dts_parse_param(config, section)
# verify if the delimiter is good if the lists are vertical
- dutIPs, targets, test_suites = dts_parse_config(config, section)
- for dutIP in dutIPs:
- log_handler.info("\nDUT " + dutIP)
+ duts, targets, test_suites = dts_parse_config(config, section)
+ for dut in duts:
+ log_handler.info("\nDUT " + dut)
# look up in crbs - to find the matching IP
- for dutIP in dutIPs:
+ for dut in duts:
for crb in crbs:
- if crb['IP'] == dutIP:
+ if crb['section'] == dut:
crbInsts.append(crb)
break
@@ -514,7 +514,7 @@ def run_all(config_file, pkgName, git, patch, skip_setup,
log_handler.error(" SKIP UNKNOWN CRB")
continue
- result.dut = dutIPs[0]
+ result.dut = duts[0]
# init dut, tester crb
duts, tester = dts_crbs_init(crbInsts, skip_setup, read_cache, project, base_dir, serializer, virttype)
--
1.9.3
More information about the dts
mailing list