From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3EC52A0543; Thu, 15 Dec 2022 06:40:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1A74F40684; Thu, 15 Dec 2022 06:40:07 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 274F140223 for ; Thu, 15 Dec 2022 06:40:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671082806; x=1702618806; h=from:to:cc:subject:date:message-id; bh=dD8Tb5Qf/Bfk9c5DrwBbl+T4Y/ifAgBoIP+y02FqVjo=; b=KO9H499WFFa7w+ie43GZ6AGTjY6lYFRSNP3Rv/vNWMcklzxccnF/+aF9 Iu+pH2zXs1oRpxWVRlVY1IWIcryar6rvbTRLHXXz/2XiIMFQBYaC8hFsI zOhOfCdx0y1EDy20wdAePIpH33i8GMtt3MzqMueInJbgLf+7Q04nmNT9W suzeBG4ZzyDiDRhsA27/bkCEt0g1wBPpxUnzAJpSElXlmGEZVnmwG/LNS Pl4IkW4nVTSo8eGgML2tM6Jn04gBNtrGLWFbeU9asnU+PxyF3eakdcoDE FYXyEXH4Dj6qDJvmAXbYwUdfVGKRYXZWdIujudJUN2DUeJyfHX5hj3gCw g==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="298934471" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="298934471" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 21:40:04 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="894588157" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="894588157" Received: from unknown (HELO localhost.localdomain) ([10.239.252.93]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 21:40:02 -0800 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li Subject: [dts][PATCH V1] tests/ice_iavf_fdir: optimize scripts Date: Thu, 15 Dec 2022 22:00:11 +0800 Message-Id: <20221215140011.14633-1-hongbox.li@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 If testcase of throws an exception, and multiple testpmds have been started, the vf cannot be cleaned, and cause other cases to fail. Therefore, by adjusting the cleaning environment order, make sure to exit all sessions before cleaning vf. Signed-off-by: Hongbo Li --- tests/TestSuite_ice_iavf_fdir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_ice_iavf_fdir.py b/tests/TestSuite_ice_iavf_fdir.py index d6ca832a..b7954784 100644 --- a/tests/TestSuite_ice_iavf_fdir.py +++ b/tests/TestSuite_ice_iavf_fdir.py @@ -11932,12 +11932,12 @@ class TestICEIAVFFdir(TestCase): "test_mac_ipv6_multicast_protocol", ]: self.pmd_output.execute_cmd("mcast_addr remove 0 11:22:33:44:55:66") - self.destroy_env() - self.dut.kill_all() if getattr(self, "session_secondary", None): self.dut.close_session(self.session_secondary) if getattr(self, "session_third", None): self.dut.close_session(self.session_third) + self.destroy_env() + self.dut.kill_all() if self.running_case in [ "test_pfcp_vlan_strip_off_sw_checksum", -- 2.17.1