Skip to content

Commit

Permalink
fixup parallel boot again
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Sep 1, 2023
1 parent 1b482a3 commit e04b6fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/common/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e04b6fe

Please sign in to comment.