From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 01D3E1B1F6 for ; Tue, 23 Oct 2018 09:39:48 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2018 00:39:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,415,1534834800"; d="scan'208";a="101649410" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 23 Oct 2018 00:39:48 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 23 Oct 2018 00:39:47 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 23 Oct 2018 00:39:47 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.46]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.224]) with mapi id 14.03.0319.002; Tue, 23 Oct 2018 15:39:45 +0800 From: "Tu, Lijuan" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" Thread-Topic: [dts] [PATCH V1] tests/unit_tests_power:change hard coding for core numbers Thread-Index: AQHUapu7/RKTYK2QDkCCy5T/j0fpAaUscblw Date: Tue, 23 Oct 2018 07:39:44 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0B996B67@SHSMSX101.ccr.corp.intel.com> References: <1540277159-6265-1-git-send-email-bingx.y.yao@intel.com> In-Reply-To: <1540277159-6265-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTlhYmI0MGItZWQ1ZC00Nzc2LWE3YWQtODMxN2I4NWJkYTFiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTk1hcTJpaWVOSGZGMElhYjhhZmsxR2Rkb1pSODZCOE0yRkl6S20rN1U4RHM2dkhHcUpnM0VUb0RlakdzRWRpYyJ9 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] tests/unit_tests_power: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: Tue, 23 Oct 2018 07:39:49 -0000 Please extend to all test cases in the suite. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yaobing > Sent: Tuesday, October 23, 2018 2:46 PM > To: dts@dpdk.org > Cc: Yao, BingX Y > Subject: [dts] [PATCH V1] tests/unit_tests_power:change hard coding for > core numbers >=20 > so give up hard coding at beginning of dts coding -- change hard coding f= or > core numbers in test app startup options >=20 > Signed-off-by: yaobing > --- > tests/TestSuite_unit_tests_power.py | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_unit_tests_power.py > b/tests/TestSuite_unit_tests_power.py > index 970e0a6..7405593 100644 > --- a/tests/TestSuite_unit_tests_power.py > +++ b/tests/TestSuite_unit_tests_power.py > @@ -36,6 +36,7 @@ This TestSuite runs the unit tests included in DPDK for > power feature. > """ >=20 > from test_case import TestCase > +import utils >=20 > # > # > @@ -62,14 +63,15 @@ class TestUnitTestsPower(TestCase): > """ > Run before each test case. > """ > - pass > + cores =3D self.dut.get_core_list("all") > + self.coremask =3D utils.create_mask(cores) >=20 > def test_power(self): > """ > Run power autotest. > """ >=20 > - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % 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("power_autotest", "RTE>>", 60) > self.dut.send_expect("quit", "# ") > self.verify("Test OK" in out, "Test failed") > -- > 2.17.2