virt-sysprep: Fix test to use guestmount and virt-inspector binaries that have been...
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 15 Oct 2011 16:51:16 +0000 (17:51 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 15 Oct 2011 16:51:16 +0000 (17:51 +0100)
Makefile.am
clone/test-virt-sysprep.sh

index 5170ec8..388cdeb 100644 (file)
@@ -85,7 +85,7 @@ if HAVE_FUSE
 SUBDIRS += fuse
 endif
 
-# virt-tools in shell.  This uses guestmount.
+# virt-tools in shell.  This uses guestmount and virt-inspector.
 if HAVE_FUSE
 SUBDIRS += clone
 endif
index 897afb7..632d366 100755 (executable)
@@ -23,13 +23,22 @@ rm -f test.img guestfish
 
 qemu-img create -f qcow2 -o backing_file=../images/fedora.img test.img
 
-cat <<'EOF' > guestfish
+# Provide alternate 'virt-inspector' and 'guestmount' binaries
+# that run the just-built programs.
+
+cat <<'EOF' > virt-inspector
+#!/bin/sh -
+../run ../inspector/virt-inspector "$@"
+EOF
+chmod +x virt-inspector
+cat <<'EOF' > guestmount
 #!/bin/sh -
-../run ../fish/guestfish "$@"
+../run ../fuse/guestmount "$@"
 EOF
-chmod +x guestfish
+chmod +x guestmount
+
 PATH=.:$PATH
 
 ./virt-sysprep -a test.img
 
-rm -f test.img guestfish
+rm -f test.img virt-inspector guestmount