[12/38] tests/TestSuite_ipv4_reassembly.py: adapt to support both meson and makefile build

Message ID 20200908071825.118583-13-junx.w.zhou@intel.com (mailing list archive)
State Accepted
Headers
Series Modify suites to support meson |

Commit Message

Zhou, JunX W Sept. 8, 2020, 7:17 a.m. UTC
  From: Zhou jun <junx.w.zhou@intel.com>

Signed-off-by: Zhou jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_ipv4_reassembly.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py
index 8d69ac6..e3df14e 100644
--- a/tests/TestSuite_ipv4_reassembly.py
+++ b/tests/TestSuite_ipv4_reassembly.py
@@ -120,7 +120,7 @@  class TestIpReassembly(TestCase):
         Execute the example app and checks for errors.
         """
 
-        command = ('./examples/ip_reassembly/build/ip_reassembly -c {core_mask} ' +
+        command = ('./%s -c {core_mask} ' % self.app_ip_reassembly_path +
                    '-n {memory_channels} --  -p {dut_port_mask} ' +
                    '--maxflows={maxflows} --flowttl={flowttl} {extra_args}')
         self.dut.send_expect(
@@ -373,6 +373,7 @@  class TestIpReassembly(TestCase):
 
         self.tester.send_expect('export PS1="# "', '#')
         self.compile_example_app()
+        self.app_ip_reassembly_path = self.dut.apps_name['ip_reassembly']
         dut_ports = self.dut.get_ports(self.nic)
         dut_port = dut_ports[0]
         self.destination_mac = self.dut.get_mac_address(dut_port)