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

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

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_kni.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
  

Patch

diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
index a65fbf46..0a300539 100644
--- a/tests/TestSuite_kni.py
+++ b/tests/TestSuite_kni.py
@@ -341,9 +341,11 @@  class TestKni(TestCase):
 
         config_param = self.build_config_param()
 
+        eal_para = self.dut.create_eal_parameters(
+            cores=self.config['rx_cores'] + self.config['tx_cores'] + self.config['kernel_cores'])
         out_kni = self.dut.send_expect(
-            './%s -c %s -n %d -- -P -p %s %s -m &' %
-            (self.app_kni_path, core_mask, self.dut.get_memory_channels(), port_mask, config_param),
+            './%s %s -- -P -p %s %s -m &' %
+            (self.app_kni_path, eal_para, port_mask, config_param),
             "Link [Uu]p", 20)
 
         time.sleep(5)