]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: log when qemu crashed and the test is re-ran
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 8 Dec 2025 12:03:48 +0000 (12:03 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 8 Dec 2025 12:08:40 +0000 (12:08 +0000)
Follow-up for 0d7f5a9ae6f5fc70c5ad23398c2b7a515e9b1982

test/integration-tests/integration-test-wrapper.py

index e39742b453d0b60f18f53c82ef24bebe1fe2490a..0bbfb6044d434000aeae7d495789105da646b5bc 100755 (executable)
@@ -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)