[dts] [PATCH V1]tests/packet_capture: fix testpmd file-prefix for pdump

Xiao Qimai qimaix.xiao at intel.com
Thu Aug 13 09:33:46 CEST 2020


*. pdump depends on same file prefix with testpmd,
 as start_testpmd method in pmd_output module will attach pid and timestamp in file-prefix by default,
 need set fixed_prefix to True.

Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
---
 tests/TestSuite_packet_capture.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_packet_capture.py b/tests/TestSuite_packet_capture.py
index 6a6a5ea..9c2a309 100644
--- a/tests/TestSuite_packet_capture.py
+++ b/tests/TestSuite_packet_capture.py
@@ -451,7 +451,7 @@ class TestPacketCapture(TestCase):
                 "rm -fr {0}/*".format(self.pdump_log), "# ", 10)
         param_opt = "--port-topology=chained"
         eal_param = '--file-prefix=test'
-        self.testpmd.start_testpmd("Default", param=param_opt,
+        self.testpmd.start_testpmd("Default", param=param_opt, fixed_prefix=True,
                                    eal_param=eal_param)
         self.testpmd.execute_cmd("set fwd io")
         self.testpmd.execute_cmd("start")
-- 
2.25.1



More information about the dts mailing list