From patchwork Thu Sep 17 01:05:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77929 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2FE77A04B6; Thu, 17 Sep 2020 03:08:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BBDFF1D420; Thu, 17 Sep 2020 03:08:45 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 305D01D15D for ; Thu, 17 Sep 2020 03:08:43 +0200 (CEST) IronPort-SDR: sX5NmBs5AUeeTURQZ/jMtliwMeSzRa+gjbUuXMwCFcLOvbTT4VCPRacFA3v9PUGS0ydutvOIsV WHtFFqeqdJQA== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="147284407" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="147284407" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:08:42 -0700 IronPort-SDR: spyoTE5mpaM/5RzGA8zCaPtvvFdoJe7QVejHCt7QErjkkQZmjU4lvGeNeP7pku/PstP2lBFcdG 4mjRVCU1Ix/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931459" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:08:41 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:07 +0800 Message-Id: <20200917010513.15783-3-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 2/8] power_empty_poll: support meson 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" support meson build. Signed-off-by: yufengmx --- tests/TestSuite_power_empty_poll.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_power_empty_poll.py b/tests/TestSuite_power_empty_poll.py index 93843f7..bb69656 100644 --- a/tests/TestSuite_power_empty_poll.py +++ b/tests/TestSuite_power_empty_poll.py @@ -78,13 +78,8 @@ class TestPowerEmptyPoll(TestCase): def prepare_binary(self, name): example_dir = "examples/" + name out = self.dut.build_dpdk_apps('./' + example_dir) - self.verify("Error" not in out, "Compilation error") - self.verify("No such" not in out, "Compilation error") - binary_dir = os.path.join(self.target_dir, example_dir, 'build') - cmd = ["ls -F {0} | grep '*'".format(binary_dir), '# ', 5] - exec_file = self.d_a_con(cmd) - binary_file = os.path.join(binary_dir, exec_file[:-1]) - return binary_file + return os.path.join(self.target_dir, + self.dut.apps_name[os.path.basename(name)]) def get_cores_mask(self, cores_list): return dts_create_mask(cores_list)