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

* Re: [dts] [PATCH V1] tests/cvl_dcf_switch_filter: eliminate the impact between cases
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-09-29  3:40 UTC (permalink / raw)
  To: Jiale, SongX, dts; +Cc: Jiale, SongX

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Jiale Song
> Sent: 2021年9月9日 14:44
> To: dts@dpdk.org
> Cc: Jiale, SongX <songx.jiale@intel.com>
> Subject: [dts] [PATCH V1] tests/cvl_dcf_switch_filter: eliminate the impact
> between cases
> 
> 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>

Applied

^ 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

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git