[V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd
diff mbox series

Message ID 20200922094000.19722-1-weix.xie@intel.com
State Accepted
Headers show
Series
  • [V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd
Related show

Commit Message

Xie, WeiX Sept. 22, 2020, 9:40 a.m. UTC
support meson build method, get app name to kill testpmd process.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_dcf_lifecycle.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Xie, WeiX Sept. 22, 2020, 9:45 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei

> -----Original Message-----
> From: Xie, WeiX
> Sent: Tuesday, September 22, 2020 5:40 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill
> testpmd
LihongX Ma Sept. 29, 2020, 1:07 a.m. UTC | #2
Acked-by: Lihong Ma<lihongx.ma@intel.com>

Regards,
Ma,lihong

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie, WeiX
> Sent: Tuesday, September 22, 2020 5:46 PM
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to
> kill testpmd
Tu, Lijuan Oct. 12, 2020, 8:02 a.m. UTC | #3
> support meson build method, get app name to kill testpmd process.
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>

Applied

Patch
diff mbox series

diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py
index 76c29f89..0923dab0 100644
--- a/tests/TestSuite_dcf_lifecycle.py
+++ b/tests/TestSuite_dcf_lifecycle.py
@@ -341,7 +341,7 @@  class TestDcfLifeCycle(TestCase):
         '''
         cmd = "ps aux | grep testpmd"
         self.d_a_con(cmd)
-        cmd = r"kill -9 `ps -ef | grep testpmd | grep -v grep | grep -v testpmd_vf | awk '{print $2}'`"
+        cmd = r"kill -9 `ps -ef | grep %s | grep -v grep | grep -v %s | awk '{print $2}'`" % (self.vf_dcf_testpmd.split('/')[-1], self.vf_testpmd2.split('/')[-1])
         self.d_a_con(cmd)
         self.is_vf_dcf_pmd_on = False
         time.sleep(2)