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

Cole Robinson crobinso at redhat.com
Thu Dec 6 23:55:06 UTC 2012


---

There's some other issues with check-with-upstream-qemu, like qemu-wrapper
isn't regenerated if we specify a new QEMUDIR.

 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 2eebefa..4f88311 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -356,7 +356,7 @@ check-with-upstream-qemu-1: $(top_builddir)/qemu-wrapper.sh
 
 $(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