diff mbox series

[V1,6/7] vm_pw_mgmt_policy: support meson

Message ID 20200915083351.12506-7-yufengx.mo@intel.com (mailing list archive)
State Changes Requested
Headers show
Series power: power suite series support meson | expand

Commit Message

Yufen.Mo Sept. 15, 2020, 8:33 a.m. UTC
support meson build.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 tests/TestSuite_vm_pw_mgmt_policy.py | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/tests/TestSuite_vm_pw_mgmt_policy.py b/tests/TestSuite_vm_pw_mgmt_policy.py
index 37f49e4..3e3d473 100644
--- a/tests/TestSuite_vm_pw_mgmt_policy.py
+++ b/tests/TestSuite_vm_pw_mgmt_policy.py
@@ -44,6 +44,8 @@  from datetime import datetime, timedelta
 from copy import deepcopy
 from pprint import pformat
 
+from settings import load_global_setting
+from settings import HOST_BUILD_TYPE_SETTING
 from utils import create_mask as dts_create_mask
 from test_case import TestCase
 from pmd_output import PmdOutput
@@ -78,6 +80,9 @@  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)
+        if 'meson' == load_global_setting(HOST_BUILD_TYPE_SETTING):
+            return os.path.join(self.target_dir,
+                                _host_crb.apps_name[os.path.basename(name)])
         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')