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 C3814A0523; Thu, 2 Jul 2020 09:17:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BAAE11D943; Thu, 2 Jul 2020 09:17:51 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 932041D943 for ; Thu, 2 Jul 2020 09:17:49 +0200 (CEST) IronPort-SDR: JT1zm+gNFkCZK/jmQX7PWLrk7uqA612PhILSWV/x5N90ZMo36meyHUzqbhV2AxhonYKUzmt//5 nXG5Ut7stP1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="211856026" X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="211856026" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 00:17:49 -0700 IronPort-SDR: fKpvXlFYaMA/NAsOjGBY7k2rD6Ne5EVQ5E9xeCsqwXrU4ZRY9ngusR7fQjyTrdf7XAmXJlBCdh 5KMYLRmg5U5g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="455416469" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 02 Jul 2020 00:17:49 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 2 Jul 2020 00:17:48 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 2 Jul 2020 00:17:48 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.208]) with mapi id 14.03.0439.000; Thu, 2 Jul 2020 15:17:46 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1] tests/kernelpf_iavf: destory env need remove to run after this case Thread-Index: AQHWT4ovD22NOCWqjECJbJOQOuk3sKjz4qxg Date: Thu, 2 Jul 2020 07:17:45 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC68DAA@SHSMSX101.ccr.corp.intel.com> References: <20200701093040.3820-1-weix.xie@intel.com> In-Reply-To: <20200701093040.3820-1-weix.xie@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-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/kernelpf_iavf: destory env need remove to run after this case 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 On Behalf Of Xie wei > Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B1=1B$BF|=1B(B 17:31 > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V1] tests/kernelpf_iavf: destory env need remove to= run > after this case >=20 > If vf_rx_interrupt verified failed, it can't restore env and influence af= ter cases. >=20 > Signed-off-by: Xie wei > --- > tests/TestSuite_kernelpf_iavf.py | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_= iavf.py > index fd48fa2..6fb1bae 100644 > --- a/tests/TestSuite_kernelpf_iavf.py > +++ b/tests/TestSuite_kernelpf_iavf.py > @@ -891,9 +891,6 @@ class TestKernelpfIavf(TestCase): > self.verify('L3FWD_POWER: lcore 6 is waked up from rx interrupt'= in out, > 'lcore 6 is not waked up') > self.verify('L3FWD_POWER: lcore 7 is waked up from rx interrupt'= in out, > 'lcore 7 is not waked up') > self.dut.send_expect("killall l3fwd-power", "# ", 60, alt_sessio= n=3DTrue) > - self.interrupt_flag =3D True > - time.sleep(1) > - self.destroy_2vf_in_2pf() >=20 > def test_vf_unicast(self): > self.vm_testpmd.start_testpmd("all") > @@ -984,8 +981,9 @@ class TestKernelpfIavf(TestCase): > """ > Run after each test case. > """ > - if self.interrupt_flag is True: > - self.interrupt_flag =3D False > + if self.running_case =3D=3D "test_vf_rx_interrupt":: > + self.dut.send_expect("killall l3fwd-power", "# ", 60, alt_se= ssion=3DTrue) > + self.destroy_2vf_in_2pf() > else: > self.vm_testpmd.execute_cmd("quit", "#") > time.sleep(1) > -- > 2.17.1