diff options
author | Kristof Provost <kp@FreeBSD.org> | 2023-05-18 19:37:48 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2023-05-25 01:56:24 +0000 |
commit | 12c83a44794e8bab3355a44b1d19b83eb05e7d52 (patch) | |
tree | d6ef741a000c193c8c5d03ad55984ef23409614e /tests | |
parent | 8d92ebe2fa49f6701e6aea7345b9ab9047aaec5b (diff) | |
download | src-12c83a44794e8bab3355a44b1d19b83eb05e7d52.tar.gz src-12c83a44794e8bab3355a44b1d19b83eb05e7d52.zip |
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)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/netpfil/pf/pfsync.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |