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, Jun 3, 8:47 PM
Unknown Object (File)
Wed, May 22, 5:25 AM
Unknown Object (File)
Wed, May 22, 5:25 AM
Unknown Object (File)
Wed, May 22, 5:24 AM
Unknown Object (File)
Wed, May 22, 5:24 AM
Unknown Object (File)
Sat, May 18, 3:58 AM
Unknown Object (File)
May 13 2024, 10:45 PM
Unknown Object (File)
May 8 2024, 5:03 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

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