[V1,07/10] tests/TestSuite_qinq_filter.py: change mode of set parameter to adapt meson build

Message ID 20200916122951.17646-8-junx.w.zhou@intel.com (mailing list archive)
State Accepted
Headers
Series Modify suites to support meson |

Commit Message

Zhou, JunX W Sept. 16, 2020, 12:29 p.m. UTC
  change mode of set parameter to adapt meson build

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

Patch

diff --git a/tests/TestSuite_qinq_filter.py b/tests/TestSuite_qinq_filter.py
index 086abc17..91a2d7a5 100644
--- a/tests/TestSuite_qinq_filter.py
+++ b/tests/TestSuite_qinq_filter.py
@@ -72,9 +72,7 @@  class TestQinqFilter(TestCase):
         
         cores = self.dut.get_core_list('1S/2C/1T')
         self.coreMask = utils.create_mask(cores)
-        
-        self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=.*$/"
-                           + "CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=n/' config/common_base", "# ", 30)
+        self.dut.set_build_options({'RTE_LIBRTE_I40E_INC_VECTOR': 'n'})
         self.dut.build_install_dpdk(self.target)
         self.path=self.dut.apps_name['test-pmd']
         
@@ -350,6 +348,5 @@  class TestQinqFilter(TestCase):
         """
         Run after each test suite.
         """
-        self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=.*$/"
-                           + "CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=y/' config/common_base", "# ", 30)
+        self.dut.set_build_options({'RTE_LIBRTE_I40E_INC_VECTOR': 'y'})
         self.dut.build_install_dpdk(self.target)