Page MenuHomeFreeBSD

hostname(1): test cases requires jail
ClosedPublic

Authored by olivier on Feb 21 2024, 6:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 29, 1:48 AM
Unknown Object (File)
Wed, Nov 26, 8:56 AM
Unknown Object (File)
Tue, Nov 25, 8:10 PM
Unknown Object (File)
Sat, Nov 22, 8:54 PM
Unknown Object (File)
Tue, Nov 18, 2:47 PM
Unknown Object (File)
Mon, Nov 17, 1:36 AM
Unknown Object (File)
Nov 9 2025, 9:34 PM
Unknown Object (File)
Nov 8 2025, 11:37 PM
Subscribers

Details

Summary

Skip test if jail binary is missing

Test Plan

A system with WITHOUT_JAIL=YES fails this test with:

Original stderr
---------------

/usr/tests/bin/hostname/hostname_test: jail: not found
/usr/tests/bin/hostname/hostname_test: jexec: not found
Files left in work directory after failure: jail.conf
/usr/tests/bin/hostname/hostname_test: jail: not found

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

olivier created this revision.

I don't really object this approach, but I don't really support it either. Do you think it's okay to let the test case check if jail utility exists, and skip running if no?

I don't really object this approach, but I don't really support it either. Do you think it's okay to let the test case check if jail utility exists, and skip running if no?

yes, "skip" if jail is missing is a correct solution too.

olivier edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Feb 23 2024, 12:34 AM