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 91F82A3295 for ; Wed, 23 Oct 2019 11:41:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83D421C013; Wed, 23 Oct 2019 11:41:28 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 0580F1C013 for ; Wed, 23 Oct 2019 11:41:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 02:41:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,220,1569308400"; d="scan'208";a="397987822" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga005.fm.intel.com with ESMTP; 23 Oct 2019 02:41:26 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 23 Oct 2019 02:41:25 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 23 Oct 2019 02:41:25 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by shsmsx102.ccr.corp.intel.com ([169.254.2.176]) with mapi id 14.03.0439.000; Wed, 23 Oct 2019 17:41:23 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V1] tests/example_build: optimize script Thread-Index: AQHVhYO/fpwSa6kTFEe7CZ1eGGfhl6doAPnQ Date: Wed, 23 Oct 2019 09:41:22 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB459A8@SHSMSX101.ccr.corp.intel.com> References: <1571414767-12066-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1571414767-12066-1-git-send-email-wenjiex.a.li@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.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjgwOGExYWQtNjc0ZS00NzY2LWEwNzItNjU1YTM5NWQ4OTE1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSjVnVGxZZExZbjB1WGZUUUxsQkZIR2g0OGNMWUtPaDdcL3o1QXo2azV4XC9QZlQ3UnlJZFIzWVVtSm05N0ZjVlpkIn0= 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/example_build: optimize script 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li > Sent: Saturday, October 19, 2019 12:06 AM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V1] tests/example_build: optimize script >=20 > On some platforms, if intel-cmt-cat is installed by yum/apt etc, the inte= l-cmt- > cat/lib is not at /root/intel-cmt-cat-master/lib and it is unneccessary t= o > export PQOS_INSTALL_PATH. >=20 > Signed-off-by: Wenjie Li > --- > tests/TestSuite_example_build.py | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_example_build.py > b/tests/TestSuite_example_build.py > index f0bf0ee..a70e1b3 100644 > --- a/tests/TestSuite_example_build.py > +++ b/tests/TestSuite_example_build.py > @@ -57,7 +57,9 @@ class TestExamplebuild(TestCase): > """ > Verify example applications compile successfully > """ > - self.dut.send_expect('export PQOS_INSTALL_PATH=3D/root/intel-cmt= -cat- > master/lib', '#') > + out =3D self.dut.send_expect('ls /root/intel-cmt-cat-master/lib'= , '#') > + if "No such file or directory" not in out: > + self.dut.send_expect('export > + PQOS_INSTALL_PATH=3D/root/intel-cmt-cat-master/lib', '#') > out =3D self.dut.build_dpdk_apps("./examples", '#') > verify_info =3D ['error','Error','Stop','terminate','failed','No= such file','no > input files','not found','No rule'] > for failed_info in verify_info: > -- > 2.17.1