HomeFreeBSD

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

Description

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

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.

Reviewed By: kevans
Differential Revision: https://reviews.freebsd.org/D28463

Details

Provenance
arichardsonAuthored on Feb 3 2021, 9:31 AM
Reviewer
kevans
Differential Revision
D28463: sbin/bectl: Skip tests if sparse files are not supported
Parents
rG8b820df156e0: Fix build with read-only source dir after 83c20b8a2da0
Branches
Unknown
Tags
Unknown