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 F2C6FA04BC; Fri, 25 Sep 2020 04:21:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D2A131E4C3; Fri, 25 Sep 2020 04:21:03 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 112911C068 for ; Fri, 25 Sep 2020 04:21:00 +0200 (CEST) IronPort-SDR: kwceTueRQNbV+D8uxKjTGw/KUX1I1ApveGa7qYbUy6ngdCLCFlqI95HY3mWj0Psc1jVbd6LbTm vkhGXrc/OGiA== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140837219" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140837219" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 19:21:00 -0700 IronPort-SDR: tTVgXYcjaNai+tVhSwlYKZyfeTFiaJvCeCkvOMYjjzWN5DwCAi4rLVsYIKRXZvCJJdlGky+cCo idngF7tC8skg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="348092958" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2020 19:20:59 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 25 Sep 2020 10:17:10 +0800 Message-Id: <20200925021711.33756-7-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200925021711.33756-1-yufengx.mo@intel.com> References: <20200925021711.33756-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V3 6/7] vm_pw_mgmt_policy: 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_vm_pw_mgmt_policy.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_vm_pw_mgmt_policy.py b/tests/TestSuite_vm_pw_mgmt_policy.py index 37f49e4..9abcafd 100644 --- a/tests/TestSuite_vm_pw_mgmt_policy.py +++ b/tests/TestSuite_vm_pw_mgmt_policy.py @@ -78,13 +78,8 @@ class TestVmPwMgmtPolicy(TestCase): _host_crb = host_crb if host_crb else self.dut example_dir = "examples/" + name out = _host_crb.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.execute_cmds(cmd, name=_host_crb.session.name) - binary_file = os.path.join(binary_dir, exec_file[:-1]) - return binary_file + return os.path.join(self.target_dir, + _host_crb.apps_name[os.path.basename(name)]) def add_console(self, session): self.ext_con[session.name] = [ @@ -443,7 +438,7 @@ class TestVmPwMgmtPolicy(TestCase): 'set promisc all on', 'port start all', 'start'] - self.vm_testpmd.execute_cmd(cmds) + [self.vm_testpmd.execute_cmd(cmd) for cmd in cmds] def close_vm_testpmd(self): if not self.is_pmd_on: -- 2.21.0