From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id EED3B4C9F for ; Mon, 22 Oct 2018 12:05:49 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2018 03:05:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,411,1534834800"; d="scan'208";a="101544981" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 22 Oct 2018 03:05:48 -0700 From: yaobing To: dts@dpdk.org Cc: yaobing Date: Mon, 22 Oct 2018 18:08:49 +0800 Message-Id: <1540202929-4597-1-git-send-email-bingx.y.yao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] tests/unit_tests_kni:fix invalid coremask when dts coding X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2018 10:05:50 -0000 get local coremask due to script hard code Signed-off-by: yaobing --- 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