[V1,04/10] tests/TestSuite_dynamic_flowtype.py: Instead of getting the rxq&txq value from common_base to rte_config.h
diff mbox series

Message ID 20200916122951.17646-5-junx.w.zhou@intel.com
State New
Headers show
Series
  • Modify suites to support meson
Related show

Commit Message

Zhou, JunX W Sept. 16, 2020, 12:29 p.m. UTC
Instead of getting the rxq&txq value from common_base to rte_config.h

Signed-off-by: Zhou, Jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_dynamic_flowtype.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch
diff mbox series

diff --git a/tests/TestSuite_dynamic_flowtype.py b/tests/TestSuite_dynamic_flowtype.py
index b12a4290..90b53167 100644
--- a/tests/TestSuite_dynamic_flowtype.py
+++ b/tests/TestSuite_dynamic_flowtype.py
@@ -24,7 +24,7 @@  class TestDynamicFlowtype(TestCase):
         profile_file = 'dep/gtp.pkgo'
         profile_dst = "/tmp/"
         self.dut.session.copy_file_to(profile_file, profile_dst)
-        PF_Q_strip = 'CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF'
+        PF_Q_strip = 'RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF'
         self.PF_QUEUE = self.search_queue_number(PF_Q_strip)
 
     def set_up(self):
@@ -41,8 +41,8 @@  class TestDynamicFlowtype(TestCase):
         """
         Search max queue number from configuration.
         """
-        out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-        pattern = "(%s=)(\d*)" % Q_strip
+        out = self.dut.send_expect("cat config/rte_config.h", "]# ", 10)
+        pattern = "define (%s) (\d*)" % Q_strip
         s = re.compile(pattern)
         res = s.search(out)
         if res is None: