[dts] [PATCH V3 6/7] vm_pw_mgmt_policy: support meson
yufengmx
yufengx.mo at intel.com
Fri Sep 25 04:17:10 CEST 2020
support meson build.
Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
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
More information about the dts
mailing list