diff mbox series

[23/38] tests/TestSuite_pmdrss_hash.py:support meson build

Message ID 1599207525-22123-23-git-send-email-xix.zhang@intel.com (mailing list archive)
State Accepted
Headers show
Series Modify suite to support meson & makefile | expand

Commit Message

Zhang, XiX Sept. 4, 2020, 8:18 a.m. UTC
Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_pmdrss_hash.py | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash.py
index b3c1d66..7e6d0bf 100644
--- a/tests/TestSuite_pmdrss_hash.py
+++ b/tests/TestSuite_pmdrss_hash.py
@@ -442,6 +442,7 @@  class TestPmdrssHash(TestCase):
             self.verify(False, "NIC Unsupported:%s" % str(self.nic))
         ports = self.dut.get_ports(self.nic)
         self.verify(len(ports) >= 1, "Not enough ports available")
+        self.path=self.dut.apps_name['test-pmd']
 
     def set_up(self):
         """
@@ -461,8 +462,8 @@  class TestPmdrssHash(TestCase):
 
         # test with different rss queues
         self.dut.send_expect(
-            "./%s/app/testpmd  -c %s -n %d -- -i --rxq=%d --txq=%d" %
-            (self.target, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120)
+            "%s  -c %s -n %d -- -i --rxq=%d --txq=%d" %
+            (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120)
 
         for iptype, rsstype in list(iptypes.items()):
             self.dut.send_expect("set verbose 8", "testpmd> ")
@@ -499,8 +500,8 @@  class TestPmdrssHash(TestCase):
 
         # test with different rss queues
         self.dut.send_expect(
-            "./%s/app/testpmd  -c %s -n %d -- -i --rxq=%d --txq=%d" %
-            (self.target, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120)
+            "%s  -c %s -n %d -- -i --rxq=%d --txq=%d" %
+            (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120)
 
         for iptype, rsstype in list(iptypes.items()):
             self.dut.send_expect("set verbose 8", "testpmd> ")
@@ -544,8 +545,8 @@  class TestPmdrssHash(TestCase):
 
         # test with different rss queues
         self.dut.send_expect(
-            "./%s/app/testpmd  -c %s -n %d -- -i --rxq=%d --txq=%d" %
-            (self.target, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120)
+            "%s  -c %s -n %d -- -i --rxq=%d --txq=%d" %
+            (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120)
 
         for iptype, rsstype in list(iptypes.items()):
             self.logger.info("***********************%s rss test********************************" % iptype)
@@ -584,8 +585,8 @@  class TestPmdrssHash(TestCase):
 
         # test with different rss queues
         self.dut.send_expect(
-            "./%s/app/testpmd  -c %s -n %d -- -i --rxq=%d --txq=%d" %
-            (self.target, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120)
+            "%s  -c %s -n %d -- -i --rxq=%d --txq=%d" %
+            (self.path, self.coremask, self.dut.get_memory_channels(), queue, queue), "testpmd> ", 120)
 
         for iptype, rsstype in list(iptypes.items()):
             self.dut.send_expect("set verbose 8", "testpmd> ")
@@ -620,7 +621,7 @@  class TestPmdrssHash(TestCase):
                     "fortpark_TLV","fortpark_BASE-T", "fortville_25g", "carlsville", "foxville"],
                     "NIC Unsupported: " + str(self.nic))
 
-        self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i" % (self.target, self.coremask, self.dut.get_memory_channels()), "testpmd> ", 120)
+        self.dut.send_expect("%s -c %s -n %d -- -i" % (self.path, self.coremask, self.dut.get_memory_channels()), "testpmd> ", 120)
         self.dut.send_expect("set promisc all off", "testpmd> ")
         out = self.dut.send_expect("create bonded device 3 0", "testpmd> ", 30)
         bond_device_id = int(re.search("port \d+", out).group().split(" ")[-1].strip())