test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V2 1/2] tests/dual_vlan: optimize script case vlan_tpid_config add check tpid
@ 2022-09-08  5:53 Weiyuan Li
  2022-09-08  5:53 ` [dts][PATCH V2 2/2] test_plans/dual_vlan: optimize dual_vlan test plan Weiyuan Li
  2022-09-20  7:42 ` [dts][PATCH V2 1/2] tests/dual_vlan: optimize script case vlan_tpid_config add check tpid Fu, Qi
  0 siblings, 2 replies; 5+ messages in thread
From: Weiyuan Li @ 2022-09-08  5:53 UTC (permalink / raw)
  To: dts; +Cc: Weiyuan Li

Optimize script case vlan_tpid_config add check tpid.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---

v2:
-Patch conflict modification

 tests/TestSuite_dual_vlan.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_dual_vlan.py b/tests/TestSuite_dual_vlan.py
index 15d6f2b2..87c5325b 100644
--- a/tests/TestSuite_dual_vlan.py
+++ b/tests/TestSuite_dual_vlan.py
@@ -502,7 +502,7 @@ class TestDualVlan(TestCase):
 
     def test_vlan_tpid_config(self):
         """
-        Configure receive port out vlan TPID
+        Configure receive port inner VLAN TPID
         """
         self.verify(
             self.nic
@@ -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.25.1


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

end of thread, other threads:[~2022-09-20  8:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08  5:53 [dts][PATCH V2 1/2] tests/dual_vlan: optimize script case vlan_tpid_config add check tpid Weiyuan Li
2022-09-08  5:53 ` [dts][PATCH V2 2/2] test_plans/dual_vlan: optimize dual_vlan test plan Weiyuan Li
2022-09-20  7:42   ` Fu, Qi
2022-09-20  8:08   ` lijuan.tu
2022-09-20  7:42 ` [dts][PATCH V2 1/2] tests/dual_vlan: optimize script case vlan_tpid_config add check tpid Fu, Qi

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