mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user