[2/5] tests/TestSuite_af_xdp_2:use API to set dpdk config when use meson

Message ID 20200911144542.28336-3-weix.ling@intel.com (mailing list archive)
State Superseded, archived
Delegated to: LIjuan Tu
Headers
Series use API to set dpdk config when use meson |

Commit Message

Ling, WeiX Sept. 11, 2020, 2:45 p.m. UTC
  Signed-off-by: lingwei <weix.ling@intel.com>
---
 tests/TestSuite_af_xdp_2.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/tests/TestSuite_af_xdp_2.py b/tests/TestSuite_af_xdp_2.py
index f1d495f..4586c9d 100644
--- a/tests/TestSuite_af_xdp_2.py
+++ b/tests/TestSuite_af_xdp_2.py
@@ -77,6 +77,7 @@  class TestAfXdp(TestCase):
     def prepare_dpdk(self):
         self.dut.send_expect(
             "sed -i 's/CONFIG_RTE_LIBRTE_PMD_AF_XDP=n$/CONFIG_RTE_LIBRTE_PMD_AF_XDP=y/' config/common_base", "# ")
+        self.dut.set_build_options({'RTE_LIBRTE_PMD_AF_XDP': 'y'})
         self.dut.build_install_dpdk(self.dut.target)
 
     def set_port_queue(self, intf):
@@ -431,7 +432,7 @@  class TestAfXdp(TestCase):
 
     def tear_down_all(self):
         self.dut.kill_all()
-
         self.dut.send_expect(
             "sed -i 's/CONFIG_RTE_LIBRTE_PMD_AF_XDP=y$/CONFIG_RTE_LIBRTE_PMD_AF_XDP=n/' config/common_base", "# ")
+        self.dut.set_build_options({'RTE_LIBRTE_PMD_AF_XDP': 'n'})
         self.dut.build_install_dpdk(self.dut.target)