* [dts] [PATCH V1] framework: execution file crbs match item changed
@ 2017-06-12 6:02 Marvin Liu
0 siblings, 0 replies; only message in thread
From: Marvin Liu @ 2017-06-12 6:02 UTC (permalink / raw)
To: dts; +Cc: Marvin Liu
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@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-12 6:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-12 6:02 [dts] [PATCH V1] framework: execution file crbs match item changed Marvin Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).