diff mbox series

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

Message ID 20201208100627.9792-13-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_link_status_interrupt.py | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_link_status_interrupt.py b/tests/TestSuite_link_status_interrupt.py
index 99783544..e5fd69ed 100644
--- a/tests/TestSuite_link_status_interrupt.py
+++ b/tests/TestSuite_link_status_interrupt.py
@@ -54,6 +54,7 @@  class TestLinkStatusInterrupt(TestCase):
         cores = self.dut.get_core_list("1S/4C/1T")
         self.coremask = utils.create_mask(cores)
         self.portmask = utils.create_mask(self.dut_ports)
+        self.eal_para = self.dut.create_eal_parameters(cores='1S/4C/1T')
         self.app_link_status_interrupt_path = self.dut.apps_name['link_status_interrupt']
 
         # build sample app
@@ -94,8 +95,8 @@  class TestLinkStatusInterrupt(TestCase):
         """
 
         if self.drivername == "igb_uio":
-            cmdline = self.app_link_status_interrupt_path + " -c %s -n %s -- -p %s " % (
-                self.coremask, self.dut.get_memory_channels(), self.portmask)
+            cmdline = self.app_link_status_interrupt_path + " %s -- -p %s " % (
+                self.eal_para, self.portmask)
             for mode in self.basic_intr_mode:
                 self.dut.send_expect("rmmod -f igb_uio", "#", 20)
                 self.dut.send_expect(
@@ -110,8 +111,8 @@  class TestLinkStatusInterrupt(TestCase):
                 self.dut.send_expect("^C", "#", 60)
         elif self.drivername == "vfio-pci":
             for mode in self.basic_intr_mode:
-                cmdline = self.app_link_status_interrupt_path + " -c %s -n %s --vfio-intr=%s -- -p %s" % (
-                    self.coremask, self.dut.get_memory_channels(), mode, self.portmask)
+                cmdline = self.app_link_status_interrupt_path + " %s --vfio-intr=%s -- -p %s" % (
+                    self.eal_para, mode, self.portmask)
                 self.dut.send_expect(cmdline, "statistics", 120)
                 self.set_link_status_and_verify(self.dut_ports[0], 'Down')
                 self.set_link_status_and_verify(self.dut_ports[0], 'Up')
@@ -123,8 +124,8 @@  class TestLinkStatusInterrupt(TestCase):
         sent packet, check packets received.
         """
         if self.drivername == "igb_uio":
-            cmdline = self.app_link_status_interrupt_path + " -c %s -n %s -- -p %s " % (
-                self.coremask, self.dut.get_memory_channels(), self.portmask)
+            cmdline = self.app_link_status_interrupt_path + "%s -- -p %s " % (
+                self.eal_para, self.portmask)
             for mode in self.basic_intr_mode:
                 self.dut.send_expect("rmmod -f igb_uio", "#", 20)
                 self.dut.send_expect(
@@ -147,8 +148,8 @@  class TestLinkStatusInterrupt(TestCase):
                 self.dut.send_expect("^C", "#", 60)
         elif self.drivername == "vfio-pci":
             for mode in self.basic_intr_mode:
-                cmdline = self.app_link_status_interrupt_path + " -c %s -n %s --vfio-intr=%s -- -p %s" % (
-                    self.coremask, self.dut.get_memory_channels(), mode, self.portmask)
+                cmdline = self.app_link_status_interrupt_path + " %s --vfio-intr=%s -- -p %s" % (
+                    self.eal_para, mode, self.portmask)
                 self.dut.send_expect(cmdline, "Aggregate statistics", 60)
                 for port in self.dut_ports:
                     self.set_link_status_and_verify(