The branch main has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0d574d8ba8b244f40c1484123c5042f49ac642b8

commit 0d574d8ba8b244f40c1484123c5042f49ac642b8
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2023-05-18 19:37:48 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2023-05-18 20:12:07 +0000

    pfsync tests: check for the correct IP address
    
    When checking if the state synced over we should look for
    198.51.100.254, not 198.51.100.2. The test worked because the incorrect
    address is a substring of the correct one, but we should fix it anyway.
    
    Reported by:    Naman Sood <na...@freebsdfoundation.org>
    MFC after:      1 week
---
 tests/sys/netpfil/pf/pfsync.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/netpfil/pf/pfsync.sh b/tests/sys/netpfil/pf/pfsync.sh
index 8d41b16d9116..8028ba9790ba 100644
--- a/tests/sys/netpfil/pf/pfsync.sh
+++ b/tests/sys/netpfil/pf/pfsync.sh
@@ -87,7 +87,7 @@ common_body()
        sleep 2
 
        if ! jexec two pfctl -s states | grep icmp | grep 198.51.100.1 | \
-           grep 198.51.100.2 ; then
+           grep 198.51.100.254 ; then
                atf_fail "state not found on synced host"
        fi
 }

Reply via email to