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 E8E7AA0C4D; Tue, 2 Nov 2021 04:18:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B29CB4069F; Tue, 2 Nov 2021 04:18:33 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 73AC74068F for ; Tue, 2 Nov 2021 04:18:32 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="254780829" X-IronPort-AV: E=Sophos;i="5.87,201,1631602800"; d="scan'208";a="254780829" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 20:18:30 -0700 X-IronPort-AV: E=Sophos;i="5.87,201,1631602800"; d="scan'208";a="449200020" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2021 20:18:29 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Date: Tue, 2 Nov 2021 11:18:19 +0800 Message-Id: <1635823099-219112-1-git-send-email-songx.jiale@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] 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 | 3 +-- 1 file changed, 1 insertion(+), 2 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..5803f5f7 --- 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() -- 2.17.1