Pino Toscano
2019-Sep-27 12:57 UTC
[Libguestfs] [p2v PATCH] tests: fix run-virt-p2v-in-a-vm helper target
It relied on the qemu libguestfs was configured with, which is no more available now. Since we already require libguestfs tools for some functional tests, make run-virt-p2v-in-a-vm depend on libguestfs too, and use the qemu configured in libguestfs. --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index d27219d..d1b4bee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -266,8 +266,9 @@ endif HAVE_LIBGUESTFS run-virt-p2v-directly: $(PHYSICAL_MACHINE) $(top_builddir)/run virt-p2v --test-disk=$(PHYSICAL_MACHINE) +if HAVE_LIBGUESTFS run-virt-p2v-in-a-vm: virt-p2v.img $(PHYSICAL_MACHINE) - $(QEMU) \ + $(shell guestfish get-hv) \ -M pc,accel=kvm:tcg \ -cpu host \ -m 1024 \ @@ -284,6 +285,7 @@ run-virt-p2v-in-a-vm: virt-p2v.img $(PHYSICAL_MACHINE) -device e1000,netdev=net2 \ $(QEMU_OPTIONS) \ & +endif HAVE_LIBGUESTFS run-virt-p2v-non-gui-conversion: stamp-test-virt-p2v-pxe-data-files SLOW=1 $(top_builddir)/run ./test-virt-p2v-pxe.sh -- 2.21.0
Richard W.M. Jones
2019-Sep-28 11:19 UTC
Re: [Libguestfs] [p2v PATCH] tests: fix run-virt-p2v-in-a-vm helper target
On Fri, Sep 27, 2019 at 02:57:49PM +0200, Pino Toscano wrote:> It relied on the qemu libguestfs was configured with, which is no more > available now. Since we already require libguestfs tools for some > functional tests, make run-virt-p2v-in-a-vm depend on libguestfs too, > and use the qemu configured in libguestfs. > --- > Makefile.am | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Makefile.am b/Makefile.am > index d27219d..d1b4bee 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -266,8 +266,9 @@ endif HAVE_LIBGUESTFS > run-virt-p2v-directly: $(PHYSICAL_MACHINE) > $(top_builddir)/run virt-p2v --test-disk=$(PHYSICAL_MACHINE) > > +if HAVE_LIBGUESTFS > run-virt-p2v-in-a-vm: virt-p2v.img $(PHYSICAL_MACHINE) > - $(QEMU) \ > + $(shell guestfish get-hv) \ > -M pc,accel=kvm:tcg \ > -cpu host \ > -m 1024 \ > @@ -284,6 +285,7 @@ run-virt-p2v-in-a-vm: virt-p2v.img $(PHYSICAL_MACHINE) > -device e1000,netdev=net2 \ > $(QEMU_OPTIONS) \ > & > +endif HAVE_LIBGUESTFS > > run-virt-p2v-non-gui-conversion: stamp-test-virt-p2v-pxe-data-files > SLOW=1 $(top_builddir)/run ./test-virt-p2v-pxe.sh > --Obvious fix, ACK Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Possibly Parallel Threads
- [PATCH 6/6] p2v: tests: use a local blank-part disk image
- [p2v PATCH] tests: require virt-v2v for functional tests
- [PATCH 3/3] p2v: Add a 'make run-virt-p2v' rule which boots virt-p2v in a VM.
- [PATCH] launch: switch from -nographic to -display none
- [p2v PATCH 0/4] More imports and fixes