Skip to content

Commit

Permalink
test: record firecracher binary used
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Barbáchano <[email protected]>
  • Loading branch information
pb8o committed Oct 9, 2023
1 parent 491c9d7 commit 747baf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def fc_tmp_path(test_fc_session_root_path):


@pytest.fixture()
def microvm_factory(fc_tmp_path, request):
def microvm_factory(fc_tmp_path, request, record_property):
"""Fixture to create microvms simply.
In order to avoid running out of space when instantiating many microvms,
Expand All @@ -278,6 +278,7 @@ def microvm_factory(fc_tmp_path, request):
jailer_binary_path = Path(binary_dir) / "jailer"
else:
fc_binary_path, jailer_binary_path = build_tools.get_firecracker_binaries()
record_property("firecracker_bin", str(fc_binary_path))

uvm_factory = MicroVMFactory(fc_tmp_path, fc_binary_path, jailer_binary_path)
yield uvm_factory
Expand Down

0 comments on commit 747baf8

Please sign in to comment.