[dts] [PATCH V1 1/2] tests/TestSuite_vm2vm_virtio_pmd: Adapt RTE_LIBRTE_PMD_PCAP updates
JiangYuX
yux.jiang at intel.com
Fri Oct 23 17:48:27 CEST 2020
From: JiangYu <yux.jiang at intel.com>
For DPDK commit: b0b672aea, PMD_PCAP has been defined by default, should not redefine.
Signed-off-by: JiangYu <yux.jiang at intel.com>
---
tests/TestSuite_vm2vm_virtio_pmd.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py b/tests/TestSuite_vm2vm_virtio_pmd.py
index a5c4032..e421285 100644
--- a/tests/TestSuite_vm2vm_virtio_pmd.py
+++ b/tests/TestSuite_vm2vm_virtio_pmd.py
@@ -90,17 +90,17 @@ class TestVM2VMVirtioPMD(TestCase):
"""
enable pcap lib in dpdk code and recompile
"""
- client_dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_PCAP=n$/CONFIG_RTE_LIBRTE_PMD_PCAP=y/' config/common_base", "#")
- client_dut.set_build_options({'RTE_LIBRTE_PMD_PCAP': 'y'})
- client_dut.build_install_dpdk(self.target)
+ if self.dut.build_type == 'makefile':
+ client_dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_PCAP=n$/CONFIG_RTE_LIBRTE_PMD_PCAP=y/' config/common_base", "#")
+ client_dut.build_install_dpdk(self.target)
def disable_pcap_lib_in_dpdk(self, client_dut):
"""
reset pcap lib in dpdk and recompile
"""
- client_dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_PCAP=y$/CONFIG_RTE_LIBRTE_PMD_PCAP=n/' config/common_base", "#")
- client_dut.set_build_options({'RTE_LIBRTE_PMD_PCAP': 'n'})
- client_dut.build_install_dpdk(self.target)
+ if self.dut.build_type == 'makefile':
+ client_dut.send_expect("sed -i 's/CONFIG_RTE_LIBRTE_PMD_PCAP=y$/CONFIG_RTE_LIBRTE_PMD_PCAP=n/' config/common_base", "#")
+ client_dut.build_install_dpdk(self.target)
def start_vhost_testpmd(self):
"""
--
2.7.4
More information about the dts
mailing list