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 7363DA0C4B; Mon, 8 Nov 2021 06:10:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39EED40151; Mon, 8 Nov 2021 06:10:32 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id B582740040 for ; Mon, 8 Nov 2021 06:10:30 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10161"; a="212208245" X-IronPort-AV: E=Sophos;i="5.87,217,1631602800"; d="scan'208";a="212208245" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2021 21:10:29 -0800 X-IronPort-AV: E=Sophos;i="5.87,217,1631602800"; d="scan'208";a="502861268" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2021 21:10:28 -0800 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Date: Mon, 8 Nov 2021 13:10:16 +0800 Message-Id: <1636348216-211815-1-git-send-email-songx.jiale@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2] tests/iavf_fdir: optimization script 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 Sender: "dts" initialize pf. because pf is not initialized after case test, other case tests fail Signed-off-by: Jiale Song --- tests/TestSuite_iavf_fdir.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) mode change 100755 => 100644 tests/TestSuite_iavf_fdir.py diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py old mode 100755 new mode 100644 index fab7cc27..6abb75c5 --- a/tests/TestSuite_iavf_fdir.py +++ b/tests/TestSuite_iavf_fdir.py @@ -7593,6 +7593,7 @@ class TestIAVFFdir(TestCase): """ Run before each test case. """ + self.dut.restore_interfaces_linux() self.setup_2pf_4vf_env() time.sleep(1) self.launch_testpmd() @@ -8344,7 +8345,6 @@ class TestIAVFFdir(TestCase): create same rules on pf and vf, no conflict """ self.dut.kill_all() - self.setup_2pf_4vf_env() self.session_secondary = self.dut.new_session() self.session_third = self.dut.new_session() @@ -8496,7 +8496,6 @@ class TestIAVFFdir(TestCase): create same input set but different action rules on pf and vf, no conflict. """ self.dut.kill_all() - self.setup_2pf_4vf_env() self.session_secondary = self.dut.new_session() self.session_third = self.dut.new_session() @@ -9810,7 +9809,6 @@ class TestIAVFFdir(TestCase): def tear_down(self): # destroy all flow rule on port 0 - self.dut.kill_all() self.destroy_env() if getattr(self, 'session_secondary', None): self.dut.close_session(self.session_secondary) -- 2.17.1