diff mbox series

[V1] tests/TestSuite_kernelpf_iavf:support meson build method

Message ID 20200915031057.15453-1-weix.xie@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/TestSuite_kernelpf_iavf:support meson build method | expand

Commit Message

Xie, WeiX Sept. 15, 2020, 3:10 a.m. UTC
support meson build method

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Xie, WeiX Sept. 15, 2020, 3:09 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


-----Original Message-----
From: Xie, WeiX 
Sent: Tuesday, September 15, 2020 11:11 AM
To: dts@dpdk.org
Cc: Xie, WeiX <weix.xie@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_kernelpf_iavf:support meson build method

support meson build method

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index f8fa94f0..66389a29 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -863,7 +863,7 @@ class TestKernelpfIavf(TestCase):
         self.bind_nic_driver(self.dut_ports, driver="")
         self.create_2vf_in_host()
         # start l3fwd-power
-        l3fwd_app = "./examples/l3fwd-power/build/l3fwd-power"
+        l3fwd_app = self.dut.apps_name['l3fwd-power']
 
         cmd = l3fwd_app + " -l 6,7 -n 4 -- -p 0x3 --config " + \
                           "'(0,0,6),(1,0,7)'"
@@ -979,7 +979,7 @@ class TestKernelpfIavf(TestCase):
         Run after each test case.
         """
         if self.running_case == "test_vf_rx_interrupt":
-            self.dut.send_expect("killall l3fwd-power", "# ", 60, alt_session=True)
+            self.dut.send_expect("killall %s" % self.dut.apps_name['l3fwd-power'].strip().split('/')[-1], "# ", 60, alt_session=True)
             self.destroy_2vf_in_2pf()
         else:
             self.vm_testpmd.execute_cmd("quit", "#")
Tu, Lijuan Sept. 15, 2020, 8:56 a.m. UTC | #2
> Subject: [dts] [PATCH V1] tests/TestSuite_kernelpf_iavf:support meson build
> method
> 
> support meson build method
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>

Applied
diff mbox series

Patch

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index f8fa94f0..66389a29 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -863,7 +863,7 @@  class TestKernelpfIavf(TestCase):
         self.bind_nic_driver(self.dut_ports, driver="")
         self.create_2vf_in_host()
         # start l3fwd-power
-        l3fwd_app = "./examples/l3fwd-power/build/l3fwd-power"
+        l3fwd_app = self.dut.apps_name['l3fwd-power']
 
         cmd = l3fwd_app + " -l 6,7 -n 4 -- -p 0x3 --config " + \
                           "'(0,0,6),(1,0,7)'"
@@ -979,7 +979,7 @@  class TestKernelpfIavf(TestCase):
         Run after each test case.
         """
         if self.running_case == "test_vf_rx_interrupt":
-            self.dut.send_expect("killall l3fwd-power", "# ", 60, alt_session=True)
+            self.dut.send_expect("killall %s" % self.dut.apps_name['l3fwd-power'].strip().split('/')[-1], "# ", 60, alt_session=True)
             self.destroy_2vf_in_2pf()
         else:
             self.vm_testpmd.execute_cmd("quit", "#")