[Libguestfs] [PATCH v2] tests: Fix qemu-wrapper.sh generation

Cole Robinson crobinso at redhat.com
Fri Dec 7 00:22:32 UTC 2012


---
 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 2eebefa..560ebda 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -352,11 +352,11 @@ check-with-upstream-qemu:
 
 check-with-upstream-qemu-1: $(top_builddir)/qemu-wrapper.sh
 	$(QEMUBINARY) --version
-	$(MAKE) LIBGUESTFS_QEMU=$(top_builddir)/qemu-wrapper.sh check
+	$(MAKE) LIBGUESTFS_QEMU=$(abs_builddir)/qemu-wrapper.sh check
 
 $(top_builddir)/qemu-wrapper.sh: Makefile
 	rm -f $@ $@-t
-	echo exec "$(QEMUBINARY)" -L "$(QEMUDIR)/pc-bios" "$$@" > $@-t
+	echo -e "#!/bin/sh\nexec" "$(QEMUBINARY)" -L "$(QEMUDIR)/pc-bios" \"\$$@\" > $@-t
 	chmod +x,-w $@-t
 	mv $@-t $@
 
-- 
1.8.0




More information about the Libguestfs mailing list