Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ def microvm_factory(request, record_property, results_dir, netns_factory):
report = request.node.stash[PHASE_REPORT_KEY]
if "call" in report and report["call"].failed:
for uvm in uvm_factory.vms:
# This is best effort. We want to proceed even if the VM is not responding.
try:
uvm.flush_metrics()
except: # pylint: disable=bare-except
pass
uvm_data = results_dir / uvm.id
uvm_data.mkdir()
uvm_data.joinpath("host-dmesg.log").write_text(
Expand Down