Real Ethernet devices require padding bytes to meet the minimum
64-byte frame size. This change allows the test to pass by allowing
include zero or more padding bytes at the end of the packet.

Signed-off-by: Eelco Chaudron <[email protected]>
---
 tests/system-traffic.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/system-traffic.at b/tests/system-traffic.at
index 0c41c39ff..c613abea6 100644
--- a/tests/system-traffic.at
+++ b/tests/system-traffic.at
@@ -9865,7 +9865,7 @@ NS_CHECK_EXEC([at_ns0], [$PYTHON3 $srcdir/sendpkt.py p0 \
 
 dnl Check the expected de-capsulated TCP packet on the egress interface
 OVS_WAIT_UNTIL([ovs-pcap p1.pcap | grep -q \
-    "^$(ovs-ofctl compose-packet --bare 'TCP_SYN_PKT')\$"])
+    "^$(ovs-ofctl compose-packet --bare 'TCP_SYN_PKT')0*\$"])
 
 OVS_TRAFFIC_VSWITCHD_STOP
 AT_CLEANUP
-- 
2.50.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to