[22/38] tests/TestSuite_pmdpcap.py:support meson build

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

Commit Message

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

Patch

diff --git a/tests/TestSuite_pmdpcap.py b/tests/TestSuite_pmdpcap.py
index 509af0b..cec987a 100644
--- a/tests/TestSuite_pmdpcap.py
+++ b/tests/TestSuite_pmdpcap.py
@@ -66,6 +66,7 @@  class TestPmdPcap(TestCase):
         os_type = self.dut.get_os_type()
         if os_type == "freebsd":
             self.dut.send_expect("kldload contigmem", "#",20)
+        self.path=self.dut.apps_name['test-pmd']
 
     def get_pcap_compile_config(self):
         config_head = "common_"
@@ -128,11 +129,11 @@  class TestPmdPcap(TestCase):
         self.create_pcap_file(in_pcap, TestPmdPcap.pcap_file_sizes[0])
         self.dut.session.copy_file_to(in_pcap)
 
-        command = ("./{}/app/testpmd -c {} -n {} " +
+        command = ("{} -c {} -n {} " +
                    "--vdev=eth_pcap0,rx_pcap={},tx_pcap={} " +
                    "-- -i --port-topology=chained --no-flush-rx")
 
-        self.dut.send_expect(command.format(self.target, core_mask,
+        self.dut.send_expect(command.format(self.path, core_mask,
                              self.memory_channel,
                              TestPmdPcap.dut_pcap_files_path + in_pcap,
                              out_pcap), 'testpmd> ', 15)
@@ -161,12 +162,12 @@  class TestPmdPcap(TestCase):
         self.create_pcap_file(in_pcap2, TestPmdPcap.pcap_file_sizes[1])
         self.dut.session.copy_file_to(in_pcap2)
 
-        command = ("./{}/app/testpmd -c {} -n {} " +
+        command = ("{} -c {} -n {} " +
                    "--vdev=eth_pcap0,rx_pcap={},tx_pcap={} " +
                    "--vdev=eth_pcap1,rx_pcap={},tx_pcap={} " +
                    "-- -i --no-flush-rx")
 
-        self.dut.send_expect(command.format(self.target, core_mask,
+        self.dut.send_expect(command.format(self.path, core_mask,
                                             self.memory_channel,
                                             TestPmdPcap.dut_pcap_files_path +
                                             in_pcap1,