Skip to content

Commit ef4d53c

Browse files
committed
test(conftest): dump VM metrics on test failure
This is to have latest VM metrics available when analysing failures. Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent 1ccfe46 commit ef4d53c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ def microvm_factory(request, record_property, results_dir, netns_factory):
337337
report = request.node.stash[PHASE_REPORT_KEY]
338338
if "call" in report and report["call"].failed:
339339
for uvm in uvm_factory.vms:
340+
uvm.flush_metrics()
340341
uvm_data = results_dir / uvm.id
341342
uvm_data.mkdir()
342343
uvm_data.joinpath("host-dmesg.log").write_text(

0 commit comments

Comments
 (0)