diff mbox series

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

Message ID 20201208100627.9792-11-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_l2fwd_jobstats.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_l2fwd_jobstats.py b/tests/TestSuite_l2fwd_jobstats.py
index c00e39c1..6c104168 100644
--- a/tests/TestSuite_l2fwd_jobstats.py
+++ b/tests/TestSuite_l2fwd_jobstats.py
@@ -56,6 +56,7 @@  class TestL2fwdJobstats(TestCase):
         cores = self.dut.get_core_list("1S/4C/1T")
         self.coremask = utils.create_mask(cores)
 
+        self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T')
         dut_port0 = self.dut_ports[0]
         dut_port1 = self.dut_ports[1]
         self.tx_ports = [dut_port0, dut_port1]
@@ -76,7 +77,7 @@  class TestL2fwdJobstats(TestCase):
         Verify l2fwd jobstats is correct
         """
         path = self.dut.apps_name["l2fwd-jobstats"]
-        cmd = path + " -c %s -n 4 -- -q 2 -p 0x03 -l" % (self.coremask)
+        cmd = path + " %s -- -q 2 -p 0x03 -l" % (self.eal_para)
         self.dut.send_expect(cmd, "Port statistics", 60)
 
         self.scapy_send_packet(100000)