test: increase timeout for gre/vxlan tunnel-ttl

Send 10 pings, expect at least one.  The GRE test passes with two
received ICMP messages on the Styx test rig, while the VXLAN test
fails with -c 3, so try waiting a bit longer.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-11-17 11:27:35 +01:00
parent 70c12c328c
commit 7348f5cab1
+2 -2
View File
@@ -247,14 +247,14 @@ with infamy.Test() as test:
west_ns.addip(PC_WEST_HOST)
west_ns.addroute("default", PC_WEST_R1)
# Send 3 pings with TTL=3, TTL is decremented before each
# Send 10 pings with TTL=3, TTL is decremented before each
# router hop. So at PC:west (TTL=3) -> R1 routed to GRE
# tunnel (TTL=2) -> frame egresses tunnel -> R3 where it
# is routed to PC:east (TTL=1).
#
# If outer TTL was inherited (TTL=2), packet would be
# dropped at R3.
west_ns.runsh(f"ping -c 3 -t {TEST_TTL} {PC_EAST_HOST}")
west_ns.runsh(f"ping -c 10 -t {TEST_TTL} {PC_EAST_HOST}")
with test.step("Verify packets arrived at PC:east"):
packets = pcap.tcpdump()