mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
sparsify: Fix test-virt-sparsify-in-place-fstrim-unsupported.sh
Since Linux commit f663b5b38fff trimming vfat is now supported by Linux. This broke the test which assumed it was not supported. Use another filesystem (minix) which does not support trimming instead. Thanks: Daniel P. Berrangé and Pino Toscano.
This commit is contained in:
@@ -198,6 +198,16 @@ skip_unless_feature_available ()
|
||||
fi
|
||||
}
|
||||
|
||||
# Skip if a filesystem is unavailable in the daemon.
|
||||
skip_unless_filesystem_available ()
|
||||
{
|
||||
r="$(guestfish -a /dev/null run : filesystem_available "$1")"
|
||||
if [ "$r" != "true" ] ; then
|
||||
echo "$(basename $0): test skipped because $1 filesystem is not available"
|
||||
exit 77
|
||||
fi
|
||||
}
|
||||
|
||||
# Skip unless the libvirt minimum version is met.
|
||||
skip_unless_libvirt_minimum_version ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user