Set CI RunTests command retries default to 0, use 3 only for running unit tests.
This commit is contained in:
committed by
Stefan Ceriu
parent
22f868bf0e
commit
c15bb918e8
@@ -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?
|
||||
|
||||
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user