git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46e08a1
)
virt-sysprep: Skip test if xmlstarlet is not installed.
author
Richard W.M. Jones
<rjones@redhat.com>
Thu, 27 Oct 2011 12:36:15 +0000
(13:36 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 27 Oct 2011 12:37:46 +0000
(13:37 +0100)
This dependency is optional, so don't fail the test if it
is not installed.
clone/test-virt-sysprep.sh
patch
|
blob
|
history
diff --git
a/clone/test-virt-sysprep.sh
b/clone/test-virt-sysprep.sh
index
097f416
..
81e01f8
100755
(executable)
--- 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