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 B2827A318B for ; Fri, 18 Oct 2019 09:14:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C4931C0C7; Fri, 18 Oct 2019 09:14:35 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id C90831BFF8 for ; Fri, 18 Oct 2019 09:14:33 +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 orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Oct 2019 00:14:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,310,1566889200"; d="scan'208";a="208857097" Received: from unknown (HELO dpdk-wenjielx-KVM190.icx.intel.com) ([10.238.54.190]) by fmsmga001.fm.intel.com with ESMTP; 18 Oct 2019 00:14:29 -0700 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Fri, 18 Oct 2019 16:06:07 +0000 Message-Id: <1571414767-12066-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" On some platforms, if intel-cmt-cat is installed by yum/apt etc, the intel-cmt-cat/lib is not at /root/intel-cmt-cat-master/lib and it is unneccessary to export PQOS_INSTALL_PATH. Signed-off-by: Wenjie Li --- tests/TestSuite_example_build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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=/root/intel-cmt-cat-master/lib', '#') + out = 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=/root/intel-cmt-cat-master/lib', '#') out = self.dut.build_dpdk_apps("./examples", '#') verify_info = ['error','Error','Stop','terminate','failed','No such file','no input files','not found','No rule'] for failed_info in verify_info: -- 2.17.1