virt-sysprep: Fix test to use guestmount and virt-inspector binaries that have been built.

This commit is contained in:
Richard W.M. Jones
2011-10-15 17:51:16 +01:00
parent af0c123be8
commit 8cf06ddcdd
2 changed files with 14 additions and 5 deletions

View 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

View File

@@ -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 ../fish/guestfish "$@"
../run ../inspector/virt-inspector "$@"
EOF
chmod +x guestfish
chmod +x virt-inspector
cat <<'EOF' > guestmount
#!/bin/sh -
../run ../fuse/guestmount "$@"
EOF
chmod +x guestmount
PATH=.:$PATH
./virt-sysprep -a test.img
rm -f test.img guestfish
rm -f test.img virt-inspector guestmount