git: 8c9be10c1c3e - main - pf tests: make return.py more robust
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Nov 2026 21:27:15 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=8c9be10c1c3e3b454a57838724efcf2787d3aa62
commit 8c9be10c1c3e3b454a57838724efcf2787d3aa62
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-11-09 10:11:28 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-11-09 20:52:03 +0000
pf tests: make return.py more robust
Sometimes ICMP echo packets get lost, so send more than one during
the sanity check. This should resolve the intermittent failure of the
return.py:TestReturn::test_tcp test.
PR: 300511
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
tests/sys/netpfil/pf/return.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/sys/netpfil/pf/return.py b/tests/sys/netpfil/pf/return.py
index 753012860764..74010dbcc5fd 100644
--- a/tests/sys/netpfil/pf/return.py
+++ b/tests/sys/netpfil/pf/return.py
@@ -67,9 +67,9 @@ class TestReturn(VnetTestTemplate):
ToolsHelper.print_output("/sbin/route add default 192.0.2.1")
# Sanity check
- check("/sbin/ping -c 1 192.0.2.1")
- check("/sbin/ping -c 1 198.51.100.1")
- check("/sbin/ping -c 2 198.51.100.2")
+ check("/sbin/ping -c 3 192.0.2.1")
+ check("/sbin/ping -c 3 198.51.100.1")
+ check("/sbin/ping -c 3 198.51.100.2")
@pytest.mark.require_user("root")
@pytest.mark.require_progs(["scapy"])