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 0CD91A04A3; Mon, 4 Nov 2019 04:09:42 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 042551B203; Mon, 4 Nov 2019 04:09:42 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 9E04E5B32 for ; Mon, 4 Nov 2019 04:09:40 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2019 19:09:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,265,1569308400"; d="scan'208";a="213017268" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 03 Nov 2019 19:09:39 -0800 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 19:09:39 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 19:09:30 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.63]) with mapi id 14.03.0439.000; Mon, 4 Nov 2019 11:09:28 +0800 From: "Tu, Lijuan" To: "Zhang, YanX A" , "dts@dpdk.org" CC: "Zhang, YanX A" Thread-Topic: [dts] [PATCH V2] tests/TestSuite_vf_jumboframe:Optimize the code to exit testpmd Thread-Index: AQHViuCXRHUOseqRRkSYg2m3zaJ+zKd6ZMBQ Date: Mon, 4 Nov 2019 03:09:28 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB5D46E@SHSMSX101.ccr.corp.intel.com> References: <1571972817-152818-1-git-send-email-yanx.a.zhang@intel.com> In-Reply-To: <1571972817-152818-1-git-send-email-yanx.a.zhang@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTBmMGNhMmUtMzk1OS00Y2ZmLWIxM2ItN2RlMTllYzI5ZTQ0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNzhDUWsra3dTUnFYRk5JK0plcUptQWtBOE1kS3hXSUU0MDY4enFodGR3b3p2UE1VbnpEb1FGUjhaRXpWbHIxciJ9 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 V2] tests/TestSuite_vf_jumboframe:Optimize the code to exit 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 zhang,yan > Sent: Friday, October 25, 2019 11:07 AM > To: dts@dpdk.org > Cc: Zhang, YanX A > Subject: [dts] [PATCH V2] tests/TestSuite_vf_jumboframe:Optimize the code > to exit testpmd >=20 > Optimize the code to exit testpmd. >=20 > Signed-off-by: zhang,yan > --- > tests/TestSuite_vf_jumboframe.py | 20 +++----------------- > 1 file changed, 3 insertions(+), 17 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_jumboframe.py > b/tests/TestSuite_vf_jumboframe.py > index dd728d9..f88f914 100644 > --- a/tests/TestSuite_vf_jumboframe.py > +++ b/tests/TestSuite_vf_jumboframe.py > @@ -174,7 +174,7 @@ class TestVfJumboFrame(TestCase): >=20 > pkt =3D Packet(pkt_type=3D'UDP', pkt_len=3Dpktsize) > pkt.config_layer('ether', {'dst': mac}) > - pkt.send_pkt(self.tester, tx_port=3Dself.tester_intf) > + pkt.send_pkt(self.tester, tx_port=3Dself.tester_intf, timeout=3D= 30) >=20 > time.sleep(1) >=20 > @@ -219,9 +219,6 @@ class TestVfJumboFrame(TestCase): > self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) > self.jumboframes_send_packet(ETHER_STANDARD_MTU) >=20 > - self.vm_testpmd.execute_cmd("stop") > - self.vm_testpmd.quit() > - > def test_vf_normal_withjumbo(self): > """ > When jumbo frame supported, this case is to verify that the norm= al size > @@ -240,9 +237,6 @@ class TestVfJumboFrame(TestCase): > self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) > self.jumboframes_send_packet(ETHER_STANDARD_MTU) >=20 > - self.vm_testpmd.execute_cmd("stop") > - self.vm_testpmd.quit() > - > def test_vf_jumbo_nojumbo(self): > """ > This case aims to test transmitting jumbo frame packet on testpm= d > without @@ -269,9 +263,6 @@ class TestVfJumboFrame(TestCase): > else: > self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1, False) >=20 > - self.vm_testpmd.execute_cmd("stop") > - self.vm_testpmd.quit() > - > def test_vf_jumbo_withjumbo(self): > """ > When jumbo frame supported, this case is to verify that jumbo fr= ame > @@ -291,9 +282,6 @@ class TestVfJumboFrame(TestCase): > self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU - 1) > self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU) >=20 > - self.vm_testpmd.execute_cmd("stop") > - self.vm_testpmd.quit() > - > def test_vf_jumbo_overjumbo(self): > """ > When the jubmo frame MTU set as 9000, this case is to verify tha= t the > @@ -315,14 +303,12 @@ class TestVfJumboFrame(TestCase): > else: > self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, > False) >=20 > - self.vm_testpmd.execute_cmd("stop") > - self.vm_testpmd.quit() > - > def tear_down(self): > """ > Run after each test case. > """ > - pass > + self.vm_testpmd.execute_cmd("stop") > + self.vm_testpmd.quit() >=20 > def tear_down_all(self): > """ > -- > 2.17.2