From: Ling Wei <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Ling Wei <weix.ling@intel.com>
Subject: [dts] [PATCH V3] tests/cdbma:fix multi_app_mode test case use the same prefix to start
Date: Thu, 4 Feb 2021 18:16:34 +0800 [thread overview]
Message-ID: <20210204101634.365698-1-weix.ling@intel.com> (raw)
v1:
When start multi apps, if one as primary, another as secondary,
we need use the same prefix to start.
v2:
Fix world spelling errors.
v3:
Fix world spelling errors and remove print logs code.
Signed-off-by: Ling Wei <weix.ling@intel.com>
---
tests/TestSuite_cbdma.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_cbdma.py b/tests/TestSuite_cbdma.py
index f95e2942..9ece0f30 100755
--- a/tests/TestSuite_cbdma.py
+++ b/tests/TestSuite_cbdma.py
@@ -59,6 +59,7 @@ class TestCBDMA(TestCase):
self.cbdma_proc = '--proc-type=primary'
# default v_dev is None, case 1-6 use default None values, case7 use --vdev net_null_0
self.v_dev = ''
+ self.prefix_subfix = 'dpdk' + '_' + str(os.getpid()) + '_' + time.strftime("%Y%m%d%H%M%S", time.localtime())
out = self.dut.build_dpdk_apps('./examples/ioat')
self.ioat_path = self.dut.apps_name['ioat']
self.verify('Error' not in out, 'compilation ioat error')
@@ -382,11 +383,13 @@ class TestCBDMA(TestCase):
self.get_core_list()
self.pmdout = PmdOutput(self.dut)
self.pmdout.start_testpmd(cores='', eal_param='--vdev net_null_0 --proc-type=primary',
- ports=dev_info)
+ fixed_prefix=True, prefix=self.prefix_subfix, ports=dev_info)
self.pmdout.execute_cmd('port stop all')
self.cbdma_proc = '--proc-type=secondary'
- eal_params = self.dut.create_eal_parameters(cores=self.core_list,
- ports=dev_info)
+ eal_params = self.dut.create_eal_parameters(cores=self.core_list, fixed_prefix=True,
+ prefix=self.prefix_subfix ,ports=dev_info)
self.launch_ioatfwd_app(eal_params)
self.send_session.send_expect('^C','#')
self.pmdout.execute_cmd('^C')
--
2.25.1
reply other threads:[~2021-02-04 10:16 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=20210204101634.365698-1-weix.ling@intel.com \
--to=weix.ling@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).