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')