Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160187556
D47334.id145767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
732 B
Referenced Files
None
Subscribers
None
D47334.id145767.diff
View Options
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}
@@ -61,6 +58,7 @@
{
atf_set require.user root
atf_set "descr" "basic test for getting hostname"
+ atf_set execenv jail
}
basic_body()
{
@@ -81,9 +79,6 @@
}
basic_cleanup()
{
- if ! which -s jail; then
- atf_skip "This test requires jail"
- fi
recycle
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 23, 12:32 AM (3 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34210561
Default Alt Text
D47334.id145767.diff (732 B)
Attached To
Mode
D47334: tests: Switch bin/hostname/hostname_test to execenv=jail
Attached
Detach File
Event Timeline
Log In to Comment