[dts] [dts 2/8] tests/TestSuite_port_control:support meson build method

Xie wei weix.xie at intel.com
Wed Sep 2 11:15:04 CEST 2020


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

diff --git a/tests/TestSuite_port_control.py b/tests/TestSuite_port_control.py
index 147dc80..e8d96f5 100644
--- a/tests/TestSuite_port_control.py
+++ b/tests/TestSuite_port_control.py
@@ -158,7 +158,8 @@ class TestPortControl(TestCase):
         terminal.send_expect("ifconfig %s up" % vf_if[1], "#")
         terminal.send_expect("ip addr flush %s " % vf_if[1], "#")
         terminal.send_expect("./usertools/dpdk-devbind.py -b vfio-pci --force %s" % vf_pci[1], "#")
-        cmd = "./%s/app/testpmd -n 1 -w %s --vfio-intr=legacy -- -i" % (self.target, vf_pci[1])
+        app_name = terminal.apps_name['test-pmd']
+        cmd = app_name + "-n 1 -w %s --vfio-intr=legacy -- -i" % vf_pci[1]
         terminal.send_expect(cmd, "testpmd>", 10)
 
     def start_testpmd(self, terminal):
-- 
2.17.1



More information about the dts mailing list