From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATCH V1] tests/cvl_dcf_switch_filter: eliminate the impact between cases
Date: Thu, 9 Sep 2021 14:44:22 +0800 [thread overview]
Message-ID: <1631169862-226195-1-git-send-email-songx.jiale@intel.com> (raw)
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
next reply other threads:[~2021-09-09 6:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-09 6:44 Jiale Song [this message]
2021-09-29 3:40 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1631169862-226195-1-git-send-email-songx.jiale@intel.com \
--to=songx.jiale@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).