[dts] [PATCH V2]flow_filtering: check where flow launched normally

Xiao Qimai qimaix.xiao at intel.com
Mon Dec 9 10:53:40 CET 2019


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