virt-sysprep: Skip test if xmlstarlet is not installed.

This dependency is optional, so don't fail the test if it
is not installed.
This commit is contained in:
Richard W.M. Jones
2011-10-27 13:36:15 +01:00
parent 46e08a159a
commit 2749d6edfb

View File

@@ -24,6 +24,11 @@ if [ ! -w /dev/fuse ]; then
exit 0
fi
if ! xmlstarlet --help >/dev/null 2>&1; then
echo "SKIPPING virt-sysprep test, because xmlstarlet is not installed."
exit 0
fi
rm -f test.img guestfish
qemu-img create -f qcow2 -o backing_file=../images/fedora.img test.img