From e04b6fee4410ace9b2ecac95699aa4f45626108f Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 1 Sep 2023 17:37:07 +0200 Subject: [PATCH] fixup parallel boot again --- test/common/run-tests | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/common/run-tests b/test/common/run-tests index 54ff5a9f48f2..524f825e54ca 100755 --- a/test/common/run-tests +++ b/test/common/run-tests @@ -228,7 +228,7 @@ class GlobalMachine: self.web_address = f"{self.machine.web_address}:{self.machine.web_port}" self.running_test = None - # snapshot the clean boot, so that we can easily reset the VM when it gets corrupted + def snapshot(self): self.machine.wait_boot() self.machine.snapshot() @@ -418,6 +418,10 @@ def run(opts, image): memory_mb=opts.nondestructive_memory_mb, machine_class=machine_class or testvm.VirtMachine)) + # snapshot the clean boots, so that we can easily reset the VM when it gets corrupted + for m in global_machines: + m.snapshot() + # test scheduling loop while True: made_progress = False