diff --git a/tests/sys/netpfil/pf/utils.subr b/tests/sys/netpfil/pf/utils.subr --- a/tests/sys/netpfil/pf/utils.subr +++ b/tests/sys/netpfil/pf/utils.subr @@ -281,6 +281,11 @@ exit_condition=$1 shift params=$@ + + if ! scapy -h > /dev/null 2>&1; then + atf_skip "This test requires scapy" + fi + atf_check -s ${exit_condition} ${common_dir}/pft_ping.py \ --sendif ${epair_tester}a \ --to ${net_server_host_server} \ @@ -295,6 +300,11 @@ exit_condition=$1 shift params=$@ + + if ! scapy -h > /dev/null 2>&1; then + atf_skip "This test requires scapy" + fi + atf_check -s ${exit_condition} ${common_dir}/pft_ping.py \ --sendif ${epair_tester}a \ --to ${net_server_host_server} \