[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



---

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]