mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
virt-sysprep: Fix test to use guestmount and virt-inspector binaries that have been built.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user