diff options
author | Alan Somers <asomers@FreeBSD.org> | 2018-07-22 03:58:01 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2018-07-22 03:58:01 +0000 |
commit | 8707733f71a14cf104779b32cc0cb3ed817ae836 (patch) | |
tree | 3e0273776ef46319519bbdcaa2526f21ec084d86 /sbin/pfctl | |
parent | 46e1f0715d9973b83a9edfa75749dbda1c76f716 (diff) | |
download | src-8707733f71a14cf104779b32cc0cb3ed817ae836.tar.gz src-8707733f71a14cf104779b32cc0cb3ed817ae836.zip |
Skip the pftcl(8) tests if pf isn't loaded.
Previously, they would simply fail.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=336595
Diffstat (limited to 'sbin/pfctl')
-rwxr-xr-x | sbin/pfctl/tests/pfctl_test.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/pfctl/tests/pfctl_test.sh b/sbin/pfctl/tests/pfctl_test.sh index 43526086aae0..fef6d15a7edb 100755 --- a/sbin/pfctl/tests/pfctl_test.sh +++ b/sbin/pfctl/tests/pfctl_test.sh @@ -30,6 +30,7 @@ for i in ${pftests} ; do atf_test_case "pf${i}" eval "pf${i}_head () { atf_set descr \"$(pf${i}_descr)\" ; }" eval "pf${i}_body () { \ + kldstat -m pf || atf_skip \"pf(4) is not loaded\" && \ cd $(atf_get_srcdir)/files && \ atf_check -o file:pf${i}.ok \ pfctl -o none -nvf - < pf${i}.in ; }" |