From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4EB431B3A7 for ; Tue, 23 Oct 2018 09:45:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2018 00:45:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,415,1534834800"; d="scan'208";a="83407134" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 23 Oct 2018 00:45:48 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 23 Oct 2018 00:45:48 -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:45:39 +0800 From: "Tu, Lijuan" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" Thread-Topic: [dts] [PATCH V2] tests/unit_tests_kni:fix invalid coremask when dts coding Thread-Index: AQHUae77KG09JvAJ2k+SipS4sGyJ1aUsdLWg Date: Tue, 23 Oct 2018 07:45:38 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0B996B98@SHSMSX101.ccr.corp.intel.com> References: <1540202929-4597-1-git-send-email-bingx.y.yao@intel.com> In-Reply-To: <1540202929-4597-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2JjNTAzNDgtZjljMi00YzU0LWIxYzItODBiYmI1ZTdkYWVhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiY0xvYk5WRUJGclJqVWcxMGk3WWJQR1wvSnlva1RKNHdkS2NDejlJZjAyaFk0VXdcL0JwVXdudkdBZW55UzdjSU5SIn0= 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 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: Tue, 23 Oct 2018 07:45:50 -0000 Please fix all test cases with the same issues. Thanks. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yaobing > Sent: Monday, October 22, 2018 6:09 PM > To: dts@dpdk.org > Cc: Yao, BingX Y > Subject: [dts] [PATCH V2] tests/unit_tests_kni:fix invalid coremask when = dts > coding >=20 > get local coremask due to script hard code >=20 > Signed-off-by: yaobing > --- > tests/TestSuite_unit_tests_kni.py | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > 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. > """ >=20 > from test_case import TestCase > +import utils >=20 > # > # > @@ -72,7 +73,8 @@ class TestUnitTestsKni(TestCase): >=20 > KNI Prerequisites > """ > - > + cores =3D self.dut.get_core_list("1S/2C/1T") > + self.coremask =3D utils.create_mask(cores) > self.insmod_kni() >=20 > 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 =3D self.dut.send_expect("kni_autotest", "RTE>>", 60) > self.dut.send_expect("quit", "# ") >=20 > -- > 2.17.2