diff --git a/Tools/Sources/Commands/CI/RunTests.swift b/Tools/Sources/Commands/CI/RunTests.swift index ab77ce809..ea8363fac 100644 --- a/Tools/Sources/Commands/CI/RunTests.swift +++ b/Tools/Sources/Commands/CI/RunTests.swift @@ -25,7 +25,7 @@ struct RunTests: AsyncParsableCommand { var osVersion = "26.1" @Option(help: "Number of times to retry failed tests. Only the failing tests are re-run, not the entire suite.") - var retries = 3 + var retries = 0 @Option(help: "When set, create a simulator with this name if one doesn't already exist.") var createSimulatorName: String? diff --git a/Tools/Sources/Commands/CI/UnitTests.swift b/Tools/Sources/Commands/CI/UnitTests.swift index 71f132ffe..a9e69f78d 100644 --- a/Tools/Sources/Commands/CI/UnitTests.swift +++ b/Tools/Sources/Commands/CI/UnitTests.swift @@ -23,7 +23,8 @@ struct UnitTests: AsyncParsableCommand { try await RunTests.parse([ "--scheme", "UnitTests", "--device", device, - "--os-version", osVersion + "--os-version", osVersion, + "--retries", "3" ]).run() } catch { failures.append("Unit tests failed: \(error)")