Skip to content

Commit 5760e81

Browse files
committedSep 4, 2024
Use SWIFTCI_USE_LOCAL_DEPS as the CI check
Unsure where `CI` is being set, but it doesn't seem to be on Linux at the very least. `SWIFTCI_USE_LOCAL_DEPS` is definitely set everywhere, use it instead.

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Sources/_InternalTestSupport/XCTAssertHelpers.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public func XCTAssertEqual<T:Equatable, U:Equatable> (_ lhs:(T,U), _ rhs:(T,U),
4444
}
4545

4646
public func XCTSkipIfCI(file: StaticString = #filePath, line: UInt = #line) throws {
47-
if let ci = ProcessInfo.processInfo.environment["CI"] as? NSString, ci.boolValue {
47+
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] != nil {
4848
throw XCTSkip("Skipping because the test is being run on CI", file: file, line: line)
4949
}
5050
}

0 commit comments

Comments
 (0)
Please sign in to comment.