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 0CC1DA0547; Thu, 9 Sep 2021 08:32:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C529B40041; Thu, 9 Sep 2021 08:32:04 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 8AC6C4003E for ; Thu, 9 Sep 2021 08:32:03 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10101"; a="281713187" X-IronPort-AV: E=Sophos;i="5.85,279,1624345200"; d="scan'208";a="281713187" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2021 23:32:02 -0700 X-IronPort-AV: E=Sophos;i="5.85,279,1624345200"; d="scan'208";a="466265107" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2021 23:32:01 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Date: Thu, 9 Sep 2021 14:44:22 +0800 Message-Id: <1631169862-226195-1-git-send-email-songx.jiale@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/cvl_dcf_switch_filter: eliminate the impact between cases 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" the case test_dcf_stop_start directly modified the variable data when calling the global variable tv_mac_ipv4_udp_pay, which affected the testing of other cases Signed-off-by: Jiale Song --- tests/TestSuite_cvl_dcf_switch_filter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 tests/TestSuite_cvl_dcf_switch_filter.py diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py b/tests/TestSuite_cvl_dcf_switch_filter.py old mode 100644 new mode 100755 index 437a262..a73db42 --- a/tests/TestSuite_cvl_dcf_switch_filter.py +++ b/tests/TestSuite_cvl_dcf_switch_filter.py @@ -1786,8 +1786,9 @@ class CVLDCFSwitchFilterTest(TestCase): self.dut.send_expect("port stop 0", "testpmd> ") self.dut.send_expect("port start 0", "testpmd> ") #send matched packets, port 1 can not receive the packets. - matched_dic['expect_results'] = {"expect_pkts":0} - self.send_and_check_packets(matched_dic) + destroy_dict = copy.deepcopy(matched_dic) + destroy_dict['expect_results'] = {"expect_pkts":0} + self.send_and_check_packets(destroy_dict) @skip_unsupported_pkg(['os default', 'wireless']) def test_mac_ipv4_pfcp_node(self): -- 1.8.3.1