diff mbox series

[V1,4/7] power_pstate: support meson

Message ID 20200915083351.12506-5-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_power_pstate.py | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/tests/TestSuite_power_pstate.py b/tests/TestSuite_power_pstate.py
index 2ee0981..4d122ae 100644
--- a/tests/TestSuite_power_pstate.py
+++ b/tests/TestSuite_power_pstate.py
@@ -38,6 +38,8 @@  from collections import Counter
 from pprint import pformat
 
 # import dts libs
+from settings import load_global_setting
+from settings import HOST_BUILD_TYPE_SETTING
 from test_case import TestCase
 from exception import VerifyFailure
 from utils import create_mask
@@ -144,6 +146,9 @@  class TestPowerPstate(TestCase):
     def prepare_binary(self, name):
         example_dir = "examples/" + name
         out = self.dut.build_dpdk_apps('./' + example_dir)
+        if 'meson' == load_global_setting(HOST_BUILD_TYPE_SETTING):
+            return os.path.join(self.target_dir,
+                                self.dut.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')