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 10A82A04A3; Mon, 4 Nov 2019 03:56:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EF4D62F42; Mon, 4 Nov 2019 03:56:52 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 0ABBD2C37 for ; Mon, 4 Nov 2019 03:56:50 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2019 18:56:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,265,1569308400"; d="scan'208";a="195316161" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga008.jf.intel.com with ESMTP; 03 Nov 2019 18:56:50 -0800 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 18:56:49 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 18:56:49 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.127]) with mapi id 14.03.0439.000; Mon, 4 Nov 2019 10:56:48 +0800 From: "Tu, Lijuan" To: "Zeng, XiaoxiaoX" , "dts@dpdk.org" CC: "Zeng, XiaoxiaoX" Thread-Topic: [dts] [PATCH V1] tests/generic_filter: add timeout when quit testpmd Thread-Index: AQHVijtAyjaVBWLZjE+6TNmo7kWK5ad6YoCA Date: Mon, 4 Nov 2019 02:56:47 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB5D3CB@SHSMSX101.ccr.corp.intel.com> References: <20191024191748.31906-1-xiaoxiaox.zeng@intel.com> In-Reply-To: <20191024191748.31906-1-xiaoxiaox.zeng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2UxNTZiYzgtMjlhOC00NmQ3LWFlMTUtYTJjM2RlNzYzYTllIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiU1k1eGdGemxqVTBFZ1RPMm1nRmF0WUk1NkIxWVJMaFoySGE3Tm81dVoyaFZZa1ZMcm03ZHI4XC96ZUxpb0VVQXYifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiaoxiao Zeng > Sent: Friday, October 25, 2019 3:18 AM > To: dts@dpdk.org > Cc: Zeng, XiaoxiaoX > Subject: [dts] [PATCH V1] tests/generic_filter: add timeout when quit > testpmd >=20 > *.quit testpmd need more time to run. >=20 > Signed-off-by: Xiaoxiao Zeng > --- > tests/TestSuite_generic_filter.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > 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 =3D self.dut.send_expect("stop", "testpmd> ") >=20 > self.verify_result(out, tx_pkts=3D"1", expect_queue=3D"0") > - self.dut.send_expect("quit", "#") > + self.dut.send_expect("quit", "#", timeout=3D30) >=20 > def test_priority_filter(self): > """ > @@ -364,7 +364,7 @@ class TestGeneric_filter(TestCase): > self.filter_send_packet("fivetuple") > out =3D self.dut.send_expect("stop", "testpmd> ") > self.verify_result(out, tx_pkts=3D"1", expect_queue=3D"0= ") > - self.dut.send_expect("quit", "#") > + self.dut.send_expect("quit", "#", timeout=3D30) > else: > self.verify(False, "%s nic not support syn filter" % self.ni= c) >=20 > @@ -761,7 +761,7 @@ class TestGeneric_filter(TestCase): > if int(cur_pkt) !=3D frames_to_send: > packet_flag =3D 0 > break > - self.dut.send_expect("quit", "#") > + self.dut.send_expect("quit", "#", timeout=3D30) > 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 =3D=3D 1, "set filters error") > -- > 2.17.0