From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 552C8A0526; Mon, 20 Jan 2020 09:33:37 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ACAA3343C; Mon, 20 Jan 2020 09:33:36 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 8E3332BF5 for ; Mon, 20 Jan 2020 09:33:35 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2020 00:33:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,341,1574150400"; d="scan'208";a="258628367" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 20 Jan 2020 00:33:34 -0800 From: Haiyang Zhao To: dts@dpdk.org Cc: Haiyang Zhao Date: Mon, 20 Jan 2020 16:39:05 +0800 Message-Id: <1579509545-132564-2-git-send-email-haiyangx.zhao@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1579509545-132564-1-git-send-email-haiyangx.zhao@intel.com> References: <1579509545-132564-1-git-send-email-haiyangx.zhao@intel.com> Subject: [dts] [PATCH V1 2/2] tests/unit_tests_cmdline: add create_eal_parameters func 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" *.call create_eal_parameters before start test for ABI test. Signed-off-by: Haiyang Zhao --- tests/TestSuite_unit_tests_cmdline.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_unit_tests_cmdline.py b/tests/TestSuite_unit_tests_cmdline.py index 86c8d82..057020c 100644 --- a/tests/TestSuite_unit_tests_cmdline.py +++ b/tests/TestSuite_unit_tests_cmdline.py @@ -58,8 +58,7 @@ class TestUnitTestsCmdline(TestCase): Run at the start of each test suite. """ # icc compilation cost long long time. - cores = self.dut.get_core_list("all") - self.coremask = utils.create_mask(cores) + self.cores = self.dut.get_core_list("all") def set_up(self): """ @@ -71,8 +70,8 @@ class TestUnitTestsCmdline(TestCase): """ Run cmdline autotests in RTE command line. """ - - self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60) + eal_params = self.dut.create_eal_parameters(cores=self.cores) + self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("cmdline_autotest", "RTE>>", 60) self.dut.send_expect("quit", "# ") self.verify("Test OK" in out, "Test failed") -- 1.8.3.1