[dts] [PATCH V2]flow_filtering: check where flow launched normally
Tu, Lijuan
lijuan.tu at intel.com
Thu Dec 19 08:52:34 CET 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiao Qimai
> Sent: Monday, December 9, 2019 5:54 PM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at 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 at 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
More information about the dts
mailing list