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 206F2A0523; Thu, 2 Jul 2020 09:19:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 18EBF1D6BD; Thu, 2 Jul 2020 09:19:15 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BC28F1D6B5 for ; Thu, 2 Jul 2020 09:19:13 +0200 (CEST) IronPort-SDR: wXU43IEeLcrw1NoO+1RbGGKKpafntJ73hZuFASCOEx5oFHZjNgcOGco9hZHm2xfZU55/ZynYfx z3GhVsuppXag== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="144340456" X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="144340456" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2020 00:19:12 -0700 IronPort-SDR: ssS7DAlNh4DqlIl/Re6glFip/T1TKDRgi3hH9iocN+vHDbx1K08vSCW65j825bGS/GgC4P94mT ZMLeLtQdVpXA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,303,1589266800"; d="scan'208";a="278031790" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 02 Jul 2020 00:19:12 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 2 Jul 2020 00:19:11 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 2 Jul 2020 00:19:11 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.185]) with mapi id 14.03.0439.000; Thu, 2 Jul 2020 15:19:09 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V2] tests/cvl_advanced_iavf_rss:need quit testpmd to restore env Thread-Index: AQHWUBvabi4082d5DUK+wKB9rNFEW6jz4eyQ Date: Thu, 2 Jul 2020 07:19:08 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC68DDC@SHSMSX101.ccr.corp.intel.com> References: <20200702025331.27351-1-weix.xie@intel.com> In-Reply-To: <20200702025331.27351-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 V2] tests/cvl_advanced_iavf_rss:need quit testpmd to restore env 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(B2=1B$BF|=1B(B 10:54 > To: dts@dpdk.org > Cc: Xie, WeiX > Subject: [dts] [PATCH V2] tests/cvl_advanced_iavf_rss:need quit testpmd t= o > restore env >=20 > need quit testpmd before rmmoding ice. >=20 > Signed-off-by: Xie wei > --- > tests/TestSuite_cvl_advanced_iavf_rss.py | 13 +++++++++---- > 1 file changed, 9 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py > b/tests/TestSuite_cvl_advanced_iavf_rss.py > index 1e6ac19..eaf55fa 100644 > --- a/tests/TestSuite_cvl_advanced_iavf_rss.py > +++ b/tests/TestSuite_cvl_advanced_iavf_rss.py > @@ -1112,10 +1112,15 @@ class AdvancedIavfRSSTest(TestCase): > self.create_testpmd_command(self.vf0_prop) > error_rule =3D ["flow create 0 ingress pattern eth / ipv4 / udp = / pfcp / end > actions rss types pfcp end key_len 0 queues end / end ", > "flow create 0 ingress pattern eth / ipv6 / udp / = pfcp / end actions > rss types pfcp end key_len 0 queues end / end ", ] > - for rule in error_rule: > - out =3D self.pmd_output.execute_cmd(rule) > - self.verify("Failed to create flow" in out, "Rule can be cre= ated") > - self.replace_pkg(self.comms_pkg_name) > + try: > + for rule in error_rule: > + out =3D self.pmd_output.execute_cmd(rule) > + self.verify("Failed to create flow" in out, "Rule can be= created") > + except Exception as e: > + raise Exception(e) > + finally: > + self.pmd_output.quit() > + self.replace_pkg(self.comms_pkg_name) >=20 > def replace_pkg(self, pkg): > self.dut_session.send_expect("cd %s" % self.ddp_fdir, "# ") > -- > 2.17.1