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 CA2F6A0523; Thu, 2 Jul 2020 04:52:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 84EA71D576; Thu, 2 Jul 2020 04:52:19 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 706CB1D56E for ; Thu, 2 Jul 2020 04:52:17 +0200 (CEST) IronPort-SDR: dcihREP5WI99LZmGVh6n6qTmD3bCoTsNvQrklA6WkEW7Afphw0XDK5yVrotCwhJkCENh5IemA1 Z/K31CyOz4FQ== X-IronPort-AV: E=McAfee;i="6000,8403,9669"; a="144294419" X-IronPort-AV: E=Sophos;i="5.75,302,1589266800"; d="scan'208";a="144294419" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 19:52:16 -0700 IronPort-SDR: S9bMalmULwzQc80JT/WVRZOqgMrZgReHgguLPQo64/rtWGd1hSERQMu+5cwQ+w1SHST7zrDjfX cfcTLt8VUrXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,302,1589266800"; d="scan'208";a="387197872" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga001.fm.intel.com with ESMTP; 01 Jul 2020 19:52:15 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Thu, 2 Jul 2020 10:53:31 +0800 Message-Id: <20200702025331.27351-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [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" need quit testpmd before rmmoding ice. Signed-off-by: Xie wei --- tests/TestSuite_cvl_advanced_iavf_rss.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 = ["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 = self.pmd_output.execute_cmd(rule) - self.verify("Failed to create flow" in out, "Rule can be created") - self.replace_pkg(self.comms_pkg_name) + try: + for rule in error_rule: + out = 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) def replace_pkg(self, pkg): self.dut_session.send_expect("cd %s" % self.ddp_fdir, "# ") -- 2.17.1