[dts] [PATCH] tests: fix string to match DPDK output

Reshma Pattan reshma.pattan at intel.com
Mon Jul 19 13:04:36 CEST 2021


From: Anatoly Burakov <anatoly.burakov at 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 at intel.com>
Signed-off-by: Reshma Pattan <reshma.pattan at intel.com>
---
 tests/TestSuite_power_pbf.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 = (
-- 
1.8.3.1



More information about the dts mailing list