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 09E4AA00C5; Fri, 29 May 2020 10:35:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C06D31DC2B; Fri, 29 May 2020 10:35:32 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 20C6C1DAEC for ; Fri, 29 May 2020 10:35:30 +0200 (CEST) IronPort-SDR: IUMl4U4WM2C6KqUC8MLi/qzoShBDN/0ll0Yjyy2ejvENceVzu9/piFw1ZFbS6VeQo8kRR81E6b H/3opGba2rig== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2020 01:35:30 -0700 IronPort-SDR: sW4uWYNDSJobPXowg9Sw9kiyVZfCSTmJVzUmUMR2hhX8nxz8oSAWL4peCGgw8uv5G2DdmNUHBp MZxXf6YFUA4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,447,1583222400"; d="scan'208";a="303065189" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 29 May 2020 01:35:29 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 29 May 2020 01:35:29 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 29 May 2020 01:35:29 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.178]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.110]) with mapi id 14.03.0439.000; Fri, 29 May 2020 16:35:24 +0800 From: "Tu, Lijuan" To: "Chen, BoX C" , "dts@dpdk.org" CC: "Chen, BoX C" Thread-Topic: [dts] [PATCH V1] Add steps to clean environment Thread-Index: AQHWL1MNcIMHv2O9EE2iwK+4pAHJRqi+yYOw Date: Fri, 29 May 2020 08:35:23 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC46A2B@SHSMSX101.ccr.corp.intel.com> References: <20200521093139.24881-1-box.c.chen@intel.com> In-Reply-To: <20200521093139.24881-1-box.c.chen@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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] Add steps to clean environment 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 ChenBo > Sent: Thursday, May 21, 2020 5:32 PM > To: dts@dpdk.org > Cc: Chen, BoX C > Subject: [dts] [PATCH V1] Add steps to clean environment >=20 > If the test result is failed, the IP set previously will be reserved, nee= d del IP >=20 > Signed-off-by: ChenBo > --- > tests/TestSuite_kni.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index > 2b2281d..d518f3e 100644 > --- a/tests/TestSuite_kni.py > +++ b/tests/TestSuite_kni.py > @@ -1210,7 +1210,11 @@ class TestKni(TestCase): > """ > Run after each test case. > """ > - pass > + if self._suite_result.test_case =3D=3D "test_ping": > + for port in self.config['ports']: > + tx_port =3D self.tester.get_local_port(port) > + tx_interface =3D self.tester.get_interface(tx_port) > + self.tester.send_expect("ip addr flush %s" % > + tx_interface, "# ") >=20 > def tear_down_all(self): > """ > -- > 2.17.1