From e66f6d3b233a213efb09465757d886ed5e395170 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Mon, 8 Dec 2025 12:03:48 +0000 Subject: [PATCH] tests: log when qemu crashed and the test is re-ran Follow-up for 0d7f5a9ae6f5fc70c5ad23398c2b7a515e9b1982 --- test/integration-tests/integration-test-wrapper.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration-tests/integration-test-wrapper.py b/test/integration-tests/integration-test-wrapper.py index e39742b453d..0bbfb6044d4 100755 --- a/test/integration-tests/integration-test-wrapper.py +++ b/test/integration-tests/integration-test-wrapper.py @@ -622,6 +622,10 @@ def main() -> None: if args.vm and result.returncode == 247 and args.exit_code != 247: if journal_file: journal_file.unlink(missing_ok=True) + print( + f'Test {args.name} failed due to QEMU crash (error 247), retrying...', + file=sys.stderr, + ) result = subprocess.run(cmd) if args.vm and result.returncode == 247 and args.exit_code != 247: print( @@ -629,6 +633,10 @@ def main() -> None: file=sys.stderr, ) exit(77) + print( + f'Test {args.name} worked on re-run after QEMU crash (error 247)', + file=sys.stderr, + ) except KeyboardInterrupt: result = subprocess.CompletedProcess(args=cmd, returncode=-signal.SIGINT) -- 2.47.3