From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 5C0586C9B for ; Wed, 24 Oct 2018 10:19:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 01:19:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,419,1534834800"; d="scan'208";a="275121708" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga006.fm.intel.com with ESMTP; 24 Oct 2018 01:19:32 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Oct 2018 01:19:32 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Oct 2018 01:19:31 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.102]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.117]) with mapi id 14.03.0415.000; Wed, 24 Oct 2018 16:19:30 +0800 From: "Tu, Lijuan" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" Thread-Topic: [dts] [PATCH V1 01/12] tests/unit_tests_cmdline:change hard coding for core numbers Thread-Index: AQHUa0BeW/tk664XZk6gm6uFdfj3DqUuDgSQ Date: Wed, 24 Oct 2018 08:19:29 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0B9AA74B@SHSMSX101.ccr.corp.intel.com> References: <1540347894-9652-1-git-send-email-bingx.y.yao@intel.com> In-Reply-To: <1540347894-9652-1-git-send-email-bingx.y.yao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGM4ZjUzODUtZTM5OC00NjM2LWE2ZDItN2EwZDY1YTQwMTFjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiemxOY3QzY1wvcXRhajFCZGdWdkFNUUpRcFhmbFcwN2RLbXdZNTl6YzFGdUxhSHRrdzZHRmNsUURUZ2M3N0g0aEoifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 01/12] tests/unit_tests_cmdline:change hard coding for core numbers 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: Wed, 24 Oct 2018 08:19:34 -0000 Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yaobing > Sent: Wednesday, October 24, 2018 10:25 AM > To: dts@dpdk.org > Cc: Yao, BingX Y > Subject: [dts] [PATCH V1 01/12] tests/unit_tests_cmdline:change hard > coding for core numbers >=20 > Cores number is different on different platform,virtual machine maybe has > not assigned cores more than 5 cores,change hard coding for core numbers > in test app startup options >=20 > Signed-off-by: yaobing > --- > tests/TestSuite_unit_tests_cmdline.py | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_unit_tests_cmdline.py > b/tests/TestSuite_unit_tests_cmdline.py > index 57111e4..1ea228c 100644 > --- a/tests/TestSuite_unit_tests_cmdline.py > +++ b/tests/TestSuite_unit_tests_cmdline.py > @@ -37,6 +37,7 @@ Cmdline autotest > """ >=20 > from test_case import TestCase > +import utils >=20 > # > # > @@ -57,7 +58,9 @@ class TestUnitTestsCmdline(TestCase): > Run at the start of each test suite. > """ > # icc compilation cost long long time. > - pass > + cores =3D self.dut.get_core_list("all") > + self.coremask =3D utils.create_mask(cores) > + > def set_up(self): > """ > Run before each test case. > @@ -69,7 +72,7 @@ class TestUnitTestsCmdline(TestCase): > Run cmdline autotests in RTE comand line. > """ >=20 > - self.dut.send_expect("./%s/app/test -n 1 -c f" % 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 =3D self.dut.send_expect("cmdline_autotest", "RTE>>", 60) > self.dut.send_expect("quit", "# ") > self.verify("Test OK" in out, "Test failed") > -- > 2.17.2