diff options
author | asomers <asomers@FreeBSD.org> | 2017-09-07 19:57:31 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2017-09-07 19:57:31 +0000 |
commit | 745cfc6e65aa327c2cf55a73b11ee658aee47b49 (patch) | |
tree | 6529f3c7c7587b8aa6c8a734baa779f43a26e9fd | |
parent | a86bff1a3f858ad04c0b3dee389e5f4a3cbec149 (diff) | |
download | FreeBSD-src-745cfc6e65aa327c2cf55a73b11ee658aee47b49.zip FreeBSD-src-745cfc6e65aa327c2cf55a73b11ee658aee47b49.tar.gz |
MFC r322255:
tests/sys/netinet/fibs_test: skip selected tests when firewalls are enabled
Some tests send packets over epair(4) interfaces. Firewalls can cause
spurious failures.
Reviewed by: ngie
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D11917
-rwxr-xr-x | tests/sys/netinet/fibs_test.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sys/netinet/fibs_test.sh b/tests/sys/netinet/fibs_test.sh index febcbb7..9799f2a 100755 --- a/tests/sys/netinet/fibs_test.sh +++ b/tests/sys/netinet/fibs_test.sh @@ -766,6 +766,12 @@ get_epair() { local EPAIRD + if (which pfctl && pfctl -s info | grep -q 'Status: Enabled') || + [ `sysctl -n net.inet.ip.fw.enable` = "1" ] || + (which ipf && ipf -V); then + atf_skip "firewalls interfere with this test" + fi + if EPAIRD=`ifconfig epair create`; then # Record the epair device so we can clean it up later echo ${EPAIRD} >> "ifaces_to_cleanup" |