aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netpfil/pf
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2022-09-15 13:57:07 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2022-09-15 13:58:42 +0000
commit80dadb9c1acf406ec25c6db0d0f8551406ae8920 (patch)
tree6090302d6fcd4e780b8b7dcafd5636b1d5aa7bca /tests/sys/netpfil/pf
parent0090d18235269cc5f9582712a42fb5641d5b6f71 (diff)
downloadsrc-80dadb9c1acf406ec25c6db0d0f8551406ae8920.tar.gz
src-80dadb9c1acf406ec25c6db0d0f8551406ae8920.zip
pf tests: require scapy for ether:short_pkt
The pft_ether.py script requires both python and scapy to be installed. Check for this so we properly skip the test when it is unavailable. Reviewed by: kp Fixes: 07ffa50ba075d ("pf tests: test short packets") Differential Revision: https://reviews.freebsd.org/D36561
Diffstat (limited to 'tests/sys/netpfil/pf')
-rw-r--r--tests/sys/netpfil/pf/ether.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sys/netpfil/pf/ether.sh b/tests/sys/netpfil/pf/ether.sh
index 0fe5069cf74c..63ca9080cbd2 100644
--- a/tests/sys/netpfil/pf/ether.sh
+++ b/tests/sys/netpfil/pf/ether.sh
@@ -642,6 +642,7 @@ short_pkt_head()
{
atf_set descr 'Test overly short Ethernet packets'
atf_set require.user root
+ atf_set require.progs scapy
}
short_pkt_body()