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, Mar 1, 11:41 PM
Unknown Object (File)
Sat, Feb 22, 2:37 AM
Unknown Object (File)
Fri, Feb 21, 9:06 PM
Unknown Object (File)
Fri, Feb 21, 1:35 AM
Unknown Object (File)
Fri, Feb 14, 9:11 PM
Unknown Object (File)
Feb 10 2025, 10:49 AM
Unknown Object (File)
Feb 4 2025, 4:51 AM
Unknown Object (File)
Jan 14 2025, 3:58 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