]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/vm: run test builds on snapshot
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 17 Jun 2019 04:38:50 +0000 (06:38 +0200)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 4 Jul 2019 18:22:58 +0000 (19:22 +0100)
The build script doesn't shutdown the guest VMs properly,
which results in filesystem corruption and guest boot
failures sooner or later.

Use the --snapshot to run builds on a snapshot,
That way killing the VM doesn't corrupt the base image.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Acked-by: Ed Maste <emaste@freebsd.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190617043858.8290-4-kraxel@redhat.com>
[AJB: added tags]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/vm/Makefile.include

index c59411bee01273d6430212d98042d4ca9024eb18..276b870216c481824bbcf178415e912ed9c5bf40 100644 (file)
@@ -57,6 +57,7 @@ vm-build-%: $(IMAGES_DIR)/%.img
                $(if $(V),--verbose) \
                --image "$<" \
                $(if $(BUILD_TARGET),--build-target $(BUILD_TARGET)) \
+               --snapshot \
                --build-qemu $(SRC_PATH) -- \
                $(if $(TARGET_LIST),--target-list=$(TARGET_LIST)) \
                $(if $(EXTRA_CONFIGURE_OPTS),$(EXTRA_CONFIGURE_OPTS)), \