From: Marvin Liu <yong.liu@intel.com>
To: dts@dpdk.org
Cc: Marvin Liu <yong.liu@intel.com>
Subject: [dts] [PATCH V1] framework: execution file crbs match item changed
Date: Mon, 12 Jun 2017 02:02:37 -0400 [thread overview]
Message-ID: <1497247357-24344-1-git-send-email-yong.liu@intel.com> (raw)
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
reply other threads:[~2017-06-12 6:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1497247357-24344-1-git-send-email-yong.liu@intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).