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
F107322953: D28463.diff
Sun, Jan 12, 11:54 AM
Unknown Object (File)
Dec 10 2024, 11:49 AM
Unknown Object (File)
Dec 1 2024, 3:23 PM
Unknown Object (File)
Nov 21 2024, 3:56 AM
Unknown Object (File)
Nov 14 2024, 8:49 PM
Unknown Object (File)
Oct 1 2024, 12:59 PM
Unknown Object (File)
Sep 27 2024, 8:57 AM
Unknown Object (File)
Sep 26 2024, 1:32 AM
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