tests/avocado: use snapshot=on in kvm_xen_guest
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 15 Dec 2023 17:33:07 +0000 (17:33 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 12 Jan 2024 13:23:48 +0000 (13:23 +0000)
This ensures the rootfs is never permanently changed as we don't need
persistence between tests anyway.

Message-Id: <20240103173349.398526-3-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
tests/avocado/kvm_xen_guest.py

index 5391283113ee506e0b5df44f39743e8baa864910..f8cb458d5db9335ed31de3f19730557acbf3b470 100644 (file)
@@ -59,7 +59,7 @@ class KVMXenGuest(QemuSystemTest, LinuxSSHMixIn):
     def run_and_check(self):
         self.vm.add_args('-kernel', self.kernel_path,
                          '-append', self.kernel_params,
-                         '-drive',  f"file={self.rootfs},if=none,format=raw,id=drv0",
+                         '-drive',  f"file={self.rootfs},if=none,snapshot=on,format=raw,id=drv0",
                          '-device', 'xen-disk,drive=drv0,vdev=xvda',
                          '-device', 'virtio-net-pci,netdev=unet',
                          '-netdev', 'user,id=unet,hostfwd=:127.0.0.1:0-:22')