diff mbox series

[07/28] tests/TestSuite_ipv4_reassembly:Modify the hard coded app parameter to call the platform interface

Message ID 20201208100627.9792-8-junx.w.zhou@intel.com (mailing list archive)
State Accepted
Headers show
Series Modify the hard coded app parameter to call the platform interface | expand

Commit Message

Zhou, JunX W Dec. 8, 2020, 10:06 a.m. UTC
Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_ipv4_reassembly.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py
index f32bcea5..20164474 100644
--- a/tests/TestSuite_ipv4_reassembly.py
+++ b/tests/TestSuite_ipv4_reassembly.py
@@ -71,6 +71,7 @@  class IpReassemblyTestConfig(object):
         self.packets_config()
 
     def cpu_config(self):
+        self.eal_para = self.dut.create_eal_parameters(cores='1S/1C/1T')
         self.core_list = self.test_case.dut.get_core_list('1S/1C/1T')
         self.core_mask = utils.create_mask(self.core_list)
         self.memory_channels = self.test_case.dut.get_memory_channels()
@@ -148,8 +149,8 @@  class TestIpReassembly(TestCase):
         Execute the example app and checks for errors.
         """
 
-        command = ('./%s -c {core_mask} ' % self.app_ip_reassembly_path +
-                   '-n {memory_channels} --  -p {dut_port_mask} ' +
+        command = ('./%s {eal_para} ' % self.app_ip_reassembly_path +
+                   '--  -p {dut_port_mask} ' +
                    '--maxflows={maxflows} --flowttl={flowttl} {extra_args}')
         self.dut.send_expect(
             command.format(**self.test_config.__dict__), 'Link [Uu]p')