From: Richard W.M. Jones Date: Thu, 27 Oct 2011 12:36:15 +0000 (+0100) Subject: virt-sysprep: Skip test if xmlstarlet is not installed. X-Git-Tag: 1.14.0~4 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=2749d6edfbed3b9185b53e9c9befb8d370965b0c virt-sysprep: Skip test if xmlstarlet is not installed. This dependency is optional, so don't fail the test if it is not installed. --- diff --git a/clone/test-virt-sysprep.sh b/clone/test-virt-sysprep.sh index 097f416..81e01f8 100755 --- a/clone/test-virt-sysprep.sh +++ b/clone/test-virt-sysprep.sh @@ -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