Page MenuHomeFreeBSD

D44040.diff
No OneTemporary

D44040.diff

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,9 +42,6 @@
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}
@@ -60,6 +57,7 @@
basic_head()
{
atf_set require.user root
+ atf_set require.progs jail
atf_set "descr" "basic test for getting hostname"
}
basic_body()
@@ -81,9 +79,6 @@
}
basic_cleanup()
{
- if ! which -s jail; then
- atf_skip "This test requires jail"
- fi
recycle
}

File Metadata

Mime Type
text/plain
Expires
Wed, Feb 5, 8:59 PM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16480763
Default Alt Text
D44040.diff (749 B)

Event Timeline