Skip to content

Commit 059aa62

Browse files
committed
tests: capture guest console on test failure
This should include dmesg output, which is helpful for troubleshooting. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 4e349ef commit 059aa62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ def microvm_factory(request, record_property, results_dir):
297297
continue
298298
dst = uvm_data / item
299299
shutil.copy(src, dst)
300+
console_data = uvm.console_data
301+
if console_data:
302+
uvm_data.joinpath("guest-console.log").write_text(console_data)
300303

301304
uvm_factory.kill()
302305

0 commit comments

Comments
 (0)