diff mbox series

tests: fix string to match DPDK output

Message ID 1626692676-70669-1-git-send-email-reshma.pattan@intel.com (mailing list archive)
State New
Headers show
Series tests: fix string to match DPDK output | expand

Commit Message

Pattan, Reshma July 19, 2021, 11:04 a.m. UTC
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

Pattan, Reshma July 20, 2021, 9:43 a.m. UTC | #1
> -----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>
diff mbox series

Patch

diff --git a/tests/TestSuite_power_pbf.py b/tests/TestSuite_power_pbf.py
index c3e2075..083fd5b 100644
--- a/tests/TestSuite_power_pbf.py
+++ b/tests/TestSuite_power_pbf.py
@@ -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 = (