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)
Mon, Apr 28, 1:58 PM
Unknown Object (File)
Thu, Apr 17, 3:41 PM
Unknown Object (File)
Wed, Apr 9, 8:37 AM
Unknown Object (File)
Mar 26 2025, 10:27 PM
Unknown Object (File)
Mar 16 2025, 11:24 PM
Unknown Object (File)
Mar 1 2025, 11:41 PM
Unknown Object (File)
Feb 22 2025, 2:37 AM
Unknown Object (File)
Feb 21 2025, 9:06 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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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