test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] tests/unit_tests_kni:fix invalid coremask when dts coding
@ 2018-10-22 10:08 yaobing
  2018-10-23  7:45 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: yaobing @ 2018-10-22 10:08 UTC (permalink / raw)
  To: dts; +Cc: yaobing

get local coremask due to script hard code

Signed-off-by: yaobing <bingx.y.yao@intel.com>
---
 tests/TestSuite_unit_tests_kni.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py
index ea8ef79..c6c854a 100644
--- a/tests/TestSuite_unit_tests_kni.py
+++ b/tests/TestSuite_unit_tests_kni.py
@@ -36,6 +36,7 @@ This TestSuite runs the unit tests included in DPDK for KNI feature.
 """
 
 from test_case import TestCase
+import utils
 
 #
 #
@@ -72,7 +73,8 @@ class TestUnitTestsKni(TestCase):
 
         KNI Prerequisites
         """
-
+        cores = self.dut.get_core_list("1S/2C/1T")
+        self.coremask = utils.create_mask(cores)
         self.insmod_kni()
 
     def set_up(self):
@@ -85,7 +87,7 @@ class TestUnitTestsKni(TestCase):
         """
         Run kni autotest.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c fffe" % self.target, "R.*T.*E.*>.*>", 60)
+        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target,self.coremask), "R.*T.*E.*>.*>", 60)
         out = self.dut.send_expect("kni_autotest", "RTE>>", 60)
         self.dut.send_expect("quit", "# ")
 
-- 
2.17.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-23  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-22 10:08 [dts] [PATCH V2] tests/unit_tests_kni:fix invalid coremask when dts coding yaobing
2018-10-23  7:45 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).