[dts] [PATCH V1 1/2] tests/power_pstate: set check core in cfg file

yufengmx yufengx.mo at intel.com
Fri May 29 09:30:22 CEST 2020


set check core in cfg file.

Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
 tests/TestSuite_power_pstate.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_power_pstate.py b/tests/TestSuite_power_pstate.py
index 7ee6c8f..2ee0981 100644
--- a/tests/TestSuite_power_pstate.py
+++ b/tests/TestSuite_power_pstate.py
@@ -316,7 +316,7 @@ class TestPowerPstate(TestCase):
         try:
             self.start_vm_power_mgr()
             # select one core to run testing
-            core_index = 1
+            core_index = self.test_content.get('check_core') or 20
             # Enable turbo Boost for this core
             self.send_json_command(core_index, 'ENABLE_TURBO')
             # these test items sequence can't changed
@@ -359,6 +359,7 @@ class TestPowerPstate(TestCase):
         self.verify_power_driver()
         self.verify_hyper_threading()
         self.init_test_binary_file()
+        self.test_content = self.get_suite_cfg()
 
     def set_up(self):
         """
-- 
2.21.0



More information about the dts mailing list