From 0bd571d06823396456b99af275121b62212c4a20 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 20 Aug 2026 09:32:40 +0300 Subject: [PATCH] Relaunch the test process on retrying after failures. So that runner exits continue the retry flows. --- Tools/Sources/Commands/CI/RunTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/Sources/Commands/CI/RunTests.swift b/Tools/Sources/Commands/CI/RunTests.swift index 7b139b02a..8c090eec6 100644 --- a/Tools/Sources/Commands/CI/RunTests.swift +++ b/Tools/Sources/Commands/CI/RunTests.swift @@ -151,6 +151,9 @@ struct RunTests: AsyncParsableCommand { // -test-iterations is the total number of attempts (initial + retries) command += " -retry-tests-on-failure" command += " -test-iterations \(retries + 1)" + // Repetitions happen in the same process by default, so a runner that exits (e.g. code 75 + // after a failed app launch) takes its own retries down with it and the test gets skipped. + command += " -test-repetition-relaunch-enabled YES" } if let testName {