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

Message ID 20200902091510.6043-3-weix.xie@intel.com (mailing list archive)
State Accepted
Headers
Series support meson build method |

Commit Message

Xie, WeiX Sept. 2, 2020, 9:15 a.m. UTC
  Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_port_control.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

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