From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org, qi.fu@intel.com
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V1 1/2] tests/dual_vlan: optimize script and add check tpid
Date: Mon, 5 Sep 2022 17:42:50 +0800 [thread overview]
Message-ID: <20220905094251.16568-1-weiyuanx.li@intel.com> (raw)
Optimize script and add check tpid.
Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
tests/TestSuite_dual_vlan.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/TestSuite_dual_vlan.py b/tests/TestSuite_dual_vlan.py
index 99f47a82..994a1d51 100644
--- a/tests/TestSuite_dual_vlan.py
+++ b/tests/TestSuite_dual_vlan.py
@@ -524,6 +524,7 @@ class TestDualVlan(TestCase):
self.vlan_send_packet(outvlan, invlan)
out = self.get_tcpdump_package()
+ self.verify("0x8100" in out, "tpid is error: " + out)
self.verify("vlan %s" % outvlan in out, "vlan tpid disable error: " + out)
self.verify("vlan %s" % invlan in out, "vlan tpid disable error: " + out)
@@ -531,6 +532,7 @@ class TestDualVlan(TestCase):
self.vlan_send_packet(outvlan, invlan)
out = self.get_tcpdump_package()
+ self.verify("0x8100" in out, "tpid is error: " + out)
self.verify(
out is not None and "vlan" not in out, "vlane tpid enable error: " + out
)
--
2.27.0
next reply other threads:[~2022-09-05 9:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-05 9:42 Weiyuan Li [this message]
2022-09-05 9:42 ` [dts][PATCH V1 2/2] test_plans/dual_vlan: optimize dual_vlan test plan Weiyuan Li
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=20220905094251.16568-1-weiyuanx.li@intel.com \
--to=weiyuanx.li@intel.com \
--cc=dts@dpdk.org \
--cc=qi.fu@intel.com \
/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).