From: Zhou Jun <junx.w.zhou@intel.com>
To: dts@dpdk.org
Cc: Zhou Jun <junx.w.zhou@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_cmdline:Modify the hard coded appparameter
Date: Thu, 10 Dec 2020 19:22:29 +0800 [thread overview]
Message-ID: <20201210112229.21854-1-junx.w.zhou@intel.com> (raw)
Modify the hard coded appparameter to call the platform interface
Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
tests/TestSuite_cmdline.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_cmdline.py b/tests/TestSuite_cmdline.py
index 0172c4fd..c189934f 100644
--- a/tests/TestSuite_cmdline.py
+++ b/tests/TestSuite_cmdline.py
@@ -54,11 +54,9 @@ class TestCmdline(TestCase):
self.verify("No such file" not in out, "compilation error 2")
# Run cmdline app
- cores = self.dut.get_core_list('1S/1C/1T')
- coreMask = utils.create_mask(cores)
self.app_cmdline_path = self.dut.apps_name['cmdline']
- self.dut.send_expect("./%s -n 1 -c " % self.app_cmdline_path + coreMask, "> ", 10)
-
+ self.eal_para = self.dut.create_eal_parameters(cores="1S/1C/1T")
+ self.dut.send_expect(r'./%s %s' % (self.app_cmdline_path, self.eal_para), "> ", 10)
def set_up(self):
"""
Run before each test case.
--
2.17.1
next reply other threads:[~2020-12-10 11:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-10 11:22 Zhou Jun [this message]
2020-12-15 5:51 ` Tu, Lijuan
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=20201210112229.21854-1-junx.w.zhou@intel.com \
--to=junx.w.zhou@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).