tests: fix string to match DPDK output
Commit Message
From: Anatoly Burakov <anatoly.burakov@intel.com>
The TestSuite_power_pbf.py is failing due to change
in the DPDK vm_power_mgmt application output, so
change test case to adopt the new o/p.
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
---
tests/TestSuite_power_pbf.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Comments
> -----Original Message-----
> From: Pattan, Reshma <reshma.pattan@intel.com>
> Sent: Monday, July 19, 2021 12:05 PM
> To: dts@dpdk.org
> Cc: Burakov, Anatoly <anatoly.burakov@intel.com>; Pattan, Reshma
> <reshma.pattan@intel.com>
> Subject: [PATCH] tests: fix string to match DPDK output
>
> From: Anatoly Burakov <anatoly.burakov@intel.com>
>
> The TestSuite_power_pbf.py is failing due to change in the DPDK
> vm_power_mgmt application output, so change test case to adopt the new o/p.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Tested-by: Reshma Pattan <reshma.pattan@intel.com>
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Pattan, Reshma
> Sent: 2021年7月20日 17:43
> To: dts@dpdk.org
> Cc: Burakov, Anatoly <anatoly.burakov@intel.com>
> Subject: Re: [dts] [PATCH] tests: fix string to match DPDK output
>
>
>
> > -----Original Message-----
> > From: Pattan, Reshma <reshma.pattan@intel.com>
> > Sent: Monday, July 19, 2021 12:05 PM
> > To: dts@dpdk.org
> > Cc: Burakov, Anatoly <anatoly.burakov@intel.com>; Pattan, Reshma
> > <reshma.pattan@intel.com>
> > Subject: [PATCH] tests: fix string to match DPDK output
> >
> > From: Anatoly Burakov <anatoly.burakov@intel.com>
> >
> > The TestSuite_power_pbf.py is failing due to change in the DPDK
> > vm_power_mgmt application output, so change test case to adopt the new
> o/p.
> >
> > Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> > Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
>
> Tested-by: Reshma Pattan <reshma.pattan@intel.com>
Applied, thanks
@@ -174,7 +174,7 @@ class TestPowerPbf(TestCase):
cmd = [' '.join([self.vm_power_mgr, option]), prompt, 30]
output = self.d_con(cmd)
self.is_mgr_on = True
-
+
return output
def close_vm_power_mgr(self):
@@ -361,11 +361,11 @@ class TestPowerPbf(TestCase):
def parse_vm_power_cores_freq(self, output):
''' get vm power management cores frequency '''
pat_begin = (
- 'POWER: power_set_governor_performance: Power management '
+ 'POWER: power_set_governor: Power management '
'governor of lcore (\\d+) is already performance')
pat_begin2 = (
- 'Power management governor of lcore (\d+) '
- 'has been set to performance successfully')
+ "Power management governor of lcore (\d+) "
+ "has been set to 'performance' successfully")
pat_end = \
'POWER: Initialized successfully for lcore (\\d+) power management'
pat_freq = (