[dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd

Xie wei weix.xie at intel.com
Tue Sep 22 11:40:00 CEST 2020


support meson build method, get app name to kill testpmd process.

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

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



More information about the dts mailing list