From c47ddc14e9f406670e69fd41101858f8cf3f226c Mon Sep 17 00:00:00 2001 From: hholoubk Date: Tue, 22 Oct 2024 13:07:43 +0200 Subject: [PATCH] Added better logging of VM start error --- libvirt/tests/src/libvirt_hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt/tests/src/libvirt_hooks.py b/libvirt/tests/src/libvirt_hooks.py index 08fc2e3ad6..97b1ea5ebc 100644 --- a/libvirt/tests/src/libvirt_hooks.py +++ b/libvirt/tests/src/libvirt_hooks.py @@ -492,11 +492,11 @@ def run_scale_test(): lxc_hook() except virt_vm.VMStartError as e: - logging.info(str(e)) if start_error: + logging.info(str(e)) pass else: - test.fail('VM Failed to start for some reason!') + test.fail(f"VM Failed to start: {str(e)}") else: if start_error: test.fail('VM started unexpected')