From: Luca Boccassi Date: Mon, 8 Dec 2025 12:03:48 +0000 (+0000) Subject: tests: log when qemu crashed and the test is re-ran X-Git-Tag: v259-rc3~25^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e66f6d3b233a213efb09465757d886ed5e395170;p=thirdparty%2Fsystemd.git tests: log when qemu crashed and the test is re-ran Follow-up for 0d7f5a9ae6f5fc70c5ad23398c2b7a515e9b1982 --- 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)