diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-17 06:38:50 +0200 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2019-07-04 19:22:58 +0100 |
commit | 7f71d5051ef98427a4d2d73b952e7073de314083 (patch) | |
tree | bea70c3488291c0c0dd387c4f35c8eeccb6cb7b0 /tests/vm | |
parent | 796471e9756982f534c3fe1444a42a021d3d21d4 (diff) | |
download | qemu-7f71d5051ef98427a4d2d73b952e7073de314083.zip qemu-7f71d5051ef98427a4d2d73b952e7073de314083.tar.gz qemu-7f71d5051ef98427a4d2d73b952e7073de314083.tar.bz2 |
tests/vm: run test builds on snapshot
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>
Diffstat (limited to 'tests/vm')
-rw-r--r-- | tests/vm/Makefile.include | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include index c59411b..276b870 100644 --- a/tests/vm/Makefile.include +++ b/tests/vm/Makefile.include @@ -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)), \ |