test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/cvl_dcf_switch_filter: eliminate the impact between cases
@ 2021-09-09  6:44 Jiale Song
  2021-09-29  3:40 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Jiale Song @ 2021-09-09  6:44 UTC (permalink / raw)
  To: dts; +Cc: Jiale Song

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 <songx.jiale@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-29  3:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09  6:44 [dts] [PATCH V1] tests/cvl_dcf_switch_filter: eliminate the impact between cases Jiale Song
2021-09-29  3:40 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).