diff --git a/bin/hostname/tests/hostname_test.sh b/bin/hostname/tests/hostname_test.sh --- a/bin/hostname/tests/hostname_test.sh +++ b/bin/hostname/tests/hostname_test.sh @@ -42,6 +42,9 @@ init() { + if ! which -s jail; then + atf_skip "This test requires jail" + fi echo "${test_jail_conf}" | \ sed -e "s/%%test_jail_name%%/${test_jail_name}/" > "./jail.conf" jail -f "./jail.conf" -c ${test_jail_name}