test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2]flow_filtering: check where flow launched normally
@ 2019-12-09  9:53 Xiao Qimai
  2019-12-19  7:52 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Qimai @ 2019-12-09  9:53 UTC (permalink / raw)
  To: dts; +Cc: Xiao Qimai

verify whether flow get up normally

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 tests/TestSuite_flow_filtering.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_flow_filtering.py b/tests/TestSuite_flow_filtering.py
index 80f5d86..29ae1ed 100644
--- a/tests/TestSuite_flow_filtering.py
+++ b/tests/TestSuite_flow_filtering.py
@@ -58,7 +58,8 @@ class TestFlowFiltering(TestCase):
         """
         Run before each test case.
         """
-        self.dut.send_expect("./examples/flow_filtering/build/flow -l 1 -n 1", "initializing port", 100)
+        out = self.dut.send_command("./examples/flow_filtering/build/flow -l 1 -n 1", timeout=15)
+        self.verify("Error" not in out, "flow launch failed")
 
     def send_packet(self, pkg):
         """
-- 
2.17.1


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

* Re: [dts] [PATCH V2]flow_filtering: check where flow launched normally
  2019-12-09  9:53 [dts] [PATCH V2]flow_filtering: check where flow launched normally Xiao Qimai
@ 2019-12-19  7:52 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-12-19  7:52 UTC (permalink / raw)
  To: Xiao, QimaiX, dts; +Cc: Xiao, QimaiX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai
> Sent: Monday, December 9, 2019 5:54 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts] [PATCH V2]flow_filtering: check where flow launched normally
> 
> verify whether flow get up normally
> 
> Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
> ---
>  tests/TestSuite_flow_filtering.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_flow_filtering.py
> b/tests/TestSuite_flow_filtering.py
> index 80f5d86..29ae1ed 100644
> --- a/tests/TestSuite_flow_filtering.py
> +++ b/tests/TestSuite_flow_filtering.py
> @@ -58,7 +58,8 @@ class TestFlowFiltering(TestCase):
>          """
>          Run before each test case.
>          """
> -        self.dut.send_expect("./examples/flow_filtering/build/flow -l 1 -n 1",
> "initializing port", 100)
> +        out = self.dut.send_command("./examples/flow_filtering/build/flow -l
> 1 -n 1", timeout=15)
> +        self.verify("Error" not in out, "flow launch failed")
> 
>      def send_packet(self, pkg):
>          """
> --
> 2.17.1


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

end of thread, other threads:[~2019-12-19  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-09  9:53 [dts] [PATCH V2]flow_filtering: check where flow launched normally Xiao Qimai
2019-12-19  7:52 ` 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).