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:
Richard W.M. Jones
2018-09-05 17:28:57 +01:00
parent 165add060e
commit da48f4e5ff
2 changed files with 16 additions and 7 deletions

View File

@@ -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 ()
{