From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 497C4A04F1; Mon, 9 Dec 2019 10:54:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1735E1B994; Mon, 9 Dec 2019 10:54:19 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id E105A1B13C for ; Mon, 9 Dec 2019 10:54:17 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2019 01:54:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,294,1571727600"; d="scan'208";a="244391346" Received: from unknown (HELO dpdk-xiaoqimai-tester.sh.intel.com) ([10.239.250.12]) by fmsmga002.fm.intel.com with ESMTP; 09 Dec 2019 01:54:16 -0800 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Mon, 9 Dec 2019 17:53:40 +0800 Message-Id: <1575885220-222176-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2]flow_filtering: check where flow launched normally X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" verify whether flow get up normally Signed-off-by: Xiao Qimai --- 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