Set CI RunTests command retries default to 0, use 3 only for running unit tests.

This commit is contained in:
Stefan Ceriu
2026-02-26 13:56:10 +02:00
committed by Stefan Ceriu
parent 22f868bf0e
commit c15bb918e8
2 changed files with 3 additions and 2 deletions

View File

@@ -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?

View File

@@ -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)")