[dts] [PATCH V1 06/10] tests/TestSuite_ipv4_reassembly.py: change mode of set parameter to adapt meson build

Zhou, Jun junx.w.zhou at intel.com
Wed Sep 16 14:29:47 CEST 2020


change mode of set parameter to adapt meson build

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

diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py
index e3df14e6..b653bbe4 100644
--- a/tests/TestSuite_ipv4_reassembly.py
+++ b/tests/TestSuite_ipv4_reassembly.py
@@ -92,8 +92,7 @@ class TestIpReassembly(TestCase):
         """
         Changes the maximum number of frames by modifying the example app code.
         """
-        self.dut.send_expect(
-            "sed -i -e 's/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=.*$/CONFIG_RTE_LIBRTE_IP_FRAG_MAX_FRAG=%s/' ./config/common_base" % int(num_of_fragments), "# ")
+        self.dut.set_build_options({'RTE_LIBRTE_IP_FRAG_MAX_FRAG': int(num_of_fragments)})
         self.dut.send_expect("export RTE_TARGET=" + self.target, "#")
         self.dut.send_expect("export RTE_SDK=`pwd`", "#")
         self.dut.send_expect("rm -rf %s" % self.target, "# ", 5)
@@ -511,7 +510,7 @@ class TestIpReassembly(TestCase):
         self.test_config = IpReassemblyTestConfig(self,
                                                   number_of_frames=1,
                                                   flowttl='3s')
-
+        self.compile_example_app()
         self.execute_example_app()
         self.tcpdump_start_sniffing()
 
@@ -540,13 +539,13 @@ class TestIpReassembly(TestCase):
         Sends 1K jumbo frames using the right configuration.
         Expects all the frames to be forwarded back.
         """
-
         mtu = 9000
         self.test_config = IpReassemblyTestConfig(self,
                                                   payload_size=mtu - 100,
                                                   fragment_size=2500)
         try:
             self.set_tester_iface_mtu(self.test_config.tester_iface, mtu)
+            self.compile_example_app()
             self.execute_example_app()
             self.send_n_siff_packets()
             self.verify_all()
-- 
2.25.1



More information about the dts mailing list