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 B2768A0547; Tue, 15 Nov 2022 09:41:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B98540DFD; Tue, 15 Nov 2022 09:41:49 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id AC4FB40150 for ; Tue, 15 Nov 2022 09:41:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668501707; x=1700037707; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FdjFoMIHlgpf83yV7Lv2W6Y4Rrm8IAszQeRByNMJFvM=; b=S8xp89LFtK7PZ/AxlxSpAyZNHhUKmoxTbSnGhwsKt/NXY6tbCNYm4e/q Q14i7ZngbpFydehN3qp0Nl45vUpbJkaWxK+e0o5QI+e41Q5fOcoExFBVO Gfmd95anPcNj2AxF0yejaUZ8onsD4UgSgZi2SgK+8irCUb5/Ki23Nvyu4 0Cdoh6moXuyoy0TBNRpeQTNb/AlI9hgt8C8zQgh56GJ/VQ2TYwgaOEYPn 6S2UglQtnIWEs0kZ9Hj6S5Fw0K5cFhdVUNS+J+INFFdyezlB8lW4GxxyC dxvBP2AH1BIEYUqcB4m1vmoTKSfj3/qizEb23PLG7evQKHytNkdW76xcf A==; X-IronPort-AV: E=McAfee;i="6500,9779,10531"; a="313348047" X-IronPort-AV: E=Sophos;i="5.96,165,1665471600"; d="scan'208";a="313348047" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 00:41:46 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10531"; a="671919114" X-IronPort-AV: E=Sophos;i="5.96,165,1665471600"; d="scan'208";a="671919114" Received: from unknown (HELO localhost.localdomain) ([10.239.252.19]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 00:41:45 -0800 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li Subject: [dts] [PATCH V1 1/3] tests/ice_iavf_fdir: optimize scripts Date: Tue, 15 Nov 2022 07:42:12 +0000 Message-Id: <20221115074214.62185-1-hongbox.li@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 when the dpdk testpmd exits abnormally, the port will not be initialized, and sometimes the test of other cases will be affected. therefore, after the test, should use quit to close the dpdk testpmd normally to avoid the impact between cases. 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.25.1