test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] tests/TestSuite_vmdq_dcb: set dpdk config before build by meson and use api to get app name
@ 2020-09-01 18:40 lingwei
  2020-09-02  4:40 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: lingwei @ 2020-09-01 18:40 UTC (permalink / raw)
  To: dts; +Cc: lingwei

set dpdk config before build by meson and use api to get app name

Signed-off-by: lingwei <weix.ling@intel.com>
---
 tests/TestSuite_vmdq_dcb.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_vmdq_dcb.py b/tests/TestSuite_vmdq_dcb.py
index 70d3dc4..d202441 100644
--- a/tests/TestSuite_vmdq_dcb.py
+++ b/tests/TestSuite_vmdq_dcb.py
@@ -100,6 +100,7 @@ class TestVmdqDcb(TestCase):
         else:
             self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=%s/CONFIG_RTE_LIBRTE_I40E_"
                              "QUEUE_NUM_PER_VM=%s/' ./config/common_base" % (vm_num, nb_queue_per_vm), "#", 20)
+            self.dut.set_build_options({'RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM': nb_queue_per_vm})
             self.dut.build_install_dpdk(self.target)
 
     def start_application(self, npools, ntcs):
@@ -159,7 +160,8 @@ class TestVmdqDcb(TestCase):
 
     def get_vmdq_stats(self):
         vmdq_dcb_session = self.dut.new_session()
-        vmdq_dcb_session.send_expect("kill -s SIGHUP  `pgrep -fl vmdq_dcb_app | awk '{print $1}'`", "#", 20)
+        app_name = self.dut.apps_name['vmdq_dcb'].split('/')[-1]
+        vmdq_dcb_session.send_expect("kill -s SIGHUP  `pgrep -fl %s | awk '{print $1}'`" % app_name, "#", 20)
         out = self.dut.get_session_output()
         self.logger.info(out)
         return out
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V2] tests/TestSuite_vmdq_dcb: set dpdk config before build by meson and use api to get app name
  2020-09-01 18:40 [dts] [PATCH V2] tests/TestSuite_vmdq_dcb: set dpdk config before build by meson and use api to get app name lingwei
@ 2020-09-02  4:40 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-09-02  4:40 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> Subject: [dts] [PATCH V2] tests/TestSuite_vmdq_dcb: set dpdk config before
> build by meson and use api to get app name
> 
> set dpdk config before build by meson and use api to get app name
> 
> Signed-off-by: lingwei <weix.ling@intel.com>

Applied

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-02  4:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01 18:40 [dts] [PATCH V2] tests/TestSuite_vmdq_dcb: set dpdk config before build by meson and use api to get app name lingwei
2020-09-02  4:40 ` Tu, Lijuan

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).