test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1]tests/packet_capture: fix testpmd file-prefix for pdump
@ 2020-08-13  7:33 Xiao Qimai
  2020-08-14  8:35 ` Xiao, QimaiX
  2020-08-21  2:50 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xiao Qimai @ 2020-08-13  7:33 UTC (permalink / raw)
  To: dts; +Cc: Xiao Qimai

*. 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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1]tests/packet_capture: fix testpmd file-prefix for pdump
  2020-08-13  7:33 [dts] [PATCH V1]tests/packet_capture: fix testpmd file-prefix for pdump Xiao Qimai
@ 2020-08-14  8:35 ` Xiao, QimaiX
  2020-08-21  2:50 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Xiao, QimaiX @ 2020-08-14  8:35 UTC (permalink / raw)
  To: Xiao, QimaiX, dts

Tested-by: Xiao Qimai <qimaix.xiao@intel.com>

Regards,
Xiao Qimai

> -----Original Message-----
> From: Xiao Qimai <qimaix.xiao@intel.com>
> Sent: Thursday, August 13, 2020 3:34 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts][PATCH V1]tests/packet_capture: fix testpmd file-prefix for
> pdump
> 
> *. 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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1]tests/packet_capture: fix testpmd file-prefix for pdump
  2020-08-13  7:33 [dts] [PATCH V1]tests/packet_capture: fix testpmd file-prefix for pdump Xiao Qimai
  2020-08-14  8:35 ` Xiao, QimaiX
@ 2020-08-21  2:50 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-08-21  2:50 UTC (permalink / raw)
  To: Xiao, QimaiX, dts; +Cc: Xiao, QimaiX

> *. 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@intel.com>

Applied

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-21  2:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13  7:33 [dts] [PATCH V1]tests/packet_capture: fix testpmd file-prefix for pdump Xiao Qimai
2020-08-14  8:35 ` Xiao, QimaiX
2020-08-21  2:50 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).