Skip to content

Commit 9c303de

Browse files
roypatbchalios
authored andcommitted
test: Call Microvm.wait_for_up if using config file
If we start Firecracker with a config file, then the microvm will boot in `.spawn()` instead of `.start()` (since we are not driving Firecracker via API requests). Thus, if this is the case, put the `wait_for_up` into `Microvm.spawn()`. Signed-off-by: Patrick Roy <[email protected]>
1 parent 9a32a1e commit 9c303de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/framework/microvm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ def spawn(
653653
# and leave 0.2 delay between them.
654654
if "no-api" not in self.jailer.extra_args:
655655
self._wait_create()
656+
if "config-file" in self.jailer.extra_args and self.iface:
657+
self.wait_for_up()
656658
if self.log_file and log_level in ("Trace", "Debug", "Info"):
657659
self.check_log_message("Running Firecracker")
658660

0 commit comments

Comments
 (0)