git: 12c83a44794e - stable/13 - pfsync tests: check for the correct IP address

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Thu, 25 May 2023 13:15:43 UTC
The branch stable/13 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=12c83a44794e8bab3355a44b1d19b83eb05e7d52

commit 12c83a44794e8bab3355a44b1d19b83eb05e7d52
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-05-18 19:37:48 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-05-25 01:56:24 +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 <naman@freebsdfoundation.org>
    MFC after:      1 week
    
    (cherry picked from commit 0d574d8ba8b244f40c1484123c5042f49ac642b8)
---
 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 748c0b2fcf29..513280331255 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
 }