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

Tu, Lijuan lijuan.tu at intel.com
Mon Jun 1 05:24:57 CEST 2020


Applied the series, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yufengmx
> Sent: Friday, May 29, 2020 3:30 PM
> To: dts at dpdk.org; Yao, Lei A <lei.a.yao at intel.com>
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: [dts] [PATCH V1 1/2] tests/power_pstate: set check core in cfg file
> 
> 
> 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