mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
ipfw: skip tests if required sysctl is not set
Since this is a configuration prerequisite rather than a test failure, use atf_skip instead. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D56069
This commit is contained in:
1 parent
6900d8b5c3
commit
648d0fefd7
1 file changed
+1
-1
@@ -88,7 +88,7 @@ firewall_init()
|
||||
if ! kldstat -q -m ipfw; then
|
||||
atf_skip "This test requires ipfw"
|
||||
elif [ $(sysctl -n net.inet.ip.fw.default_to_accept) -ne 1 ]; then
|
||||
atf_fail "ipfw tests require net.inet.ip.fw.default_to_accept=1 tunable"
|
||||
atf_skip "ipfw tests require net.inet.ip.fw.default_to_accept=1 tunable"
|
||||
fi
|
||||
elif [ ${firewall} == "pf" ]; then
|
||||
if [ ! -c /dev/pf ]; then
|
||||
|
||||
Reference in new issue
Block a user