Skip to content

Commit 9a32a1e

Browse files
roypatbchalios
authored andcommitted
test: call wait_for_up in Microvm.start()
Always block inside `Microvm.start()` until the vm has finished booting (if a network device is present in the microvm). This means that we no longer need `wait_for_up` calls after every `start()` call. Signed-off-by: Patrick Roy <[email protected]>
1 parent 44f4180 commit 9a32a1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/framework/microvm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,9 @@ def start(self):
876876
# Check that the VM has started
877877
assert self.state == "Running"
878878

879+
if self.iface:
880+
self.wait_for_up()
881+
879882
def pause(self):
880883
"""Pauses the microVM"""
881884
self.api.vm.patch(state="Paused")

0 commit comments

Comments
 (0)