[dts] [dts 11/15] tests/TestSuite_unit_tests_power:update to support meson build
Chen Linglix
linglix.chen at intel.com
Thu Sep 3 10:28:35 CEST 2020
Signed-off-by: Chen Linglix <linglix.chen at intel.com>
---
tests/TestSuite_unit_tests_power.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_unit_tests_power.py b/tests/TestSuite_unit_tests_power.py
index fb79505..b09bcd6 100644
--- a/tests/TestSuite_unit_tests_power.py
+++ b/tests/TestSuite_unit_tests_power.py
@@ -72,7 +72,8 @@ class TestUnitTestsPower(TestCase):
"""
eal_params = self.dut.create_eal_parameters(cores=self.cores)
- self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
+ app_name = self.dut.apps_name['test']
+ self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("power_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -84,7 +85,8 @@ class TestUnitTestsPower(TestCase):
# This acpi driver test case need correct BIOS and Grub settings.
# otherwise, the power lib initialization will be failed
eal_params = self.dut.create_eal_parameters(cores=self.cores)
- self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
+ app_name = self.dut.apps_name['test']
+ self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("power_cpufreq_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
@@ -96,7 +98,8 @@ class TestUnitTestsPower(TestCase):
# This acpi driver test case need correct BIOS and Grub settings.
# otherwise, the power lib initialization will be failed
eal_params = self.dut.create_eal_parameters(cores=self.cores)
- self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
+ app_name = self.dut.apps_name['test']
+ self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", 60)
out = self.dut.send_expect("power_caps_autotest", "RTE>>", 60)
self.dut.send_expect("quit", "# ")
self.verify("Test OK" in out, "Test failed")
--
1.8.3.1
More information about the dts
mailing list