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 D8934A32A1 for ; Thu, 24 Oct 2019 09:18:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9D1CD1C2A3; Thu, 24 Oct 2019 09:18:01 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 888671C135 for ; Thu, 24 Oct 2019 09:17:59 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2019 00:17:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,223,1569308400"; d="scan'208";a="210089048" Received: from unknown (HELO dpdk-zengxx-tester.localdomain) ([10.240.176.145]) by fmsmga001.fm.intel.com with ESMTP; 24 Oct 2019 00:17:57 -0700 From: Xiaoxiao Zeng To: dts@dpdk.org Cc: Xiaoxiao Zeng Date: Fri, 25 Oct 2019 03:17:48 +0800 Message-Id: <20191024191748.31906-1-xiaoxiaox.zeng@intel.com> X-Mailer: git-send-email 2.17.0 Subject: [dts] [PATCH V1] tests/generic_filter: add timeout when quit testpmd 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" *.quit testpmd need more time to run. Signed-off-by: Xiaoxiao Zeng --- tests/TestSuite_generic_filter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_generic_filter.py b/tests/TestSuite_generic_filter.py index 4f14fc1..3eb3123 100644 --- a/tests/TestSuite_generic_filter.py +++ b/tests/TestSuite_generic_filter.py @@ -237,7 +237,7 @@ class TestGeneric_filter(TestCase): out = self.dut.send_expect("stop", "testpmd> ") self.verify_result(out, tx_pkts="1", expect_queue="0") - self.dut.send_expect("quit", "#") + self.dut.send_expect("quit", "#", timeout=30) def test_priority_filter(self): """ @@ -364,7 +364,7 @@ class TestGeneric_filter(TestCase): self.filter_send_packet("fivetuple") out = self.dut.send_expect("stop", "testpmd> ") self.verify_result(out, tx_pkts="1", expect_queue="0") - self.dut.send_expect("quit", "#") + self.dut.send_expect("quit", "#", timeout=30) else: self.verify(False, "%s nic not support syn filter" % self.nic) @@ -761,7 +761,7 @@ class TestGeneric_filter(TestCase): if int(cur_pkt) != frames_to_send: packet_flag = 0 break - self.dut.send_expect("quit", "#") + self.dut.send_expect("quit", "#", timeout=30) self.dut.send_expect("sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64/' drivers/net/ixgbe/ixgbe_ethdev.h", "# ",30) self.dut.build_install_dpdk(self.target) self.verify(set_filter_flag == 1, "set filters error") -- 2.17.0