Page MenuHomeFreeBSD

sbin/bectl: Skip tests if sparse files are not supported
ClosedPublic

Authored by arichardson on Feb 2 2021, 6:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 8 2024, 3:59 AM
Unknown Object (File)
Mar 8 2024, 3:59 AM
Unknown Object (File)
Mar 8 2024, 3:59 AM
Unknown Object (File)
Mar 8 2024, 3:47 AM
Unknown Object (File)
Feb 21 2024, 5:54 AM
Unknown Object (File)
Dec 24 2023, 10:16 AM
Unknown Object (File)
Dec 20 2023, 4:07 AM
Unknown Object (File)
Dec 14 2023, 8:13 PM
Subscribers

Details

Summary

The tests create a 1GB test file and this causes the tests to fail in the
CheriBSD CI setup where we run tests with a tmpfs mount on /tmp. Tmpfs
does not support sparse files and it appears that tmpfs default to creating
a 1GB mount, so there is not enough space to run these tests.

Instead of checking for at least 1GB of free space this commit skips the
tests on file systems that do not support sparse files.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36681
Build 33570: arc lint + arc unit

Event Timeline

I'm contemplating dropping the disk size to 200M or less, but that'll require a fair amount of testing since I suspect nobody does sub-1G disks with ZFS :-). This works, and I'll rip it out should I get around to fixing the underlying cause.

This revision is now accepted and ready to land.Feb 2 2021, 6:27 PM