]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sbin/bectl: Skip tests if sparse files are not supported
authorAlex Richardson <arichardson@FreeBSD.org>
Wed, 3 Feb 2021 09:31:32 +0000 (09:31 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 22 Apr 2021 09:41:29 +0000 (10:41 +0100)
commitc2ce92c39615ed259a7483d402aba8de30824923
treec663c5946fa04c0bbbe76e3be1cc9cee94dd6d65
parent4ee7ac8dc525d0253d90fef8b1882eb4cdef801c
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

(cherry picked from commit d6f4e1a8973daff2ffe4480b66c973562982ffc7)
sbin/bectl/tests/bectl_test.sh