Page MenuHomeFreeBSD

hostname(1): test cases requires jail
ClosedPublic

Authored by olivier on Feb 21 2024, 6:32 AM.
Tags
None
Referenced Files
F87037903: D44005.diff
Fri, Jun 28, 3:08 PM
Unknown Object (File)
Thu, Jun 27, 9:25 AM
Unknown Object (File)
Sun, Jun 23, 12:43 PM
Unknown Object (File)
Mon, Jun 3, 8:47 PM
Unknown Object (File)
May 22 2024, 5:25 AM
Unknown Object (File)
May 22 2024, 5:25 AM
Unknown Object (File)
May 22 2024, 5:24 AM
Unknown Object (File)
May 22 2024, 5:24 AM
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