test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1 1/2] tests/dual_vlan: optimize script and add check tpid
@ 2022-09-05  9:42 Weiyuan Li
  2022-09-05  9:42 ` [dts][PATCH V1 2/2] test_plans/dual_vlan: optimize dual_vlan test plan Weiyuan Li
  0 siblings, 1 reply; 2+ messages in thread
From: Weiyuan Li @ 2022-09-05  9:42 UTC (permalink / raw)
  To: dts, qi.fu; +Cc: Weiyuan Li

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


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

end of thread, other threads:[~2022-09-05  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-05  9:42 [dts][PATCH V1 1/2] tests/dual_vlan: optimize script and add check tpid Weiyuan Li
2022-09-05  9:42 ` [dts][PATCH V1 2/2] test_plans/dual_vlan: optimize dual_vlan test plan Weiyuan Li

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).