File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
IntegrationTests/Tests/Utility Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,15 @@ extension XCTestCase {
100
100
let standardErrorString = String ( data: standardErrorData, encoding: . utf8) ?? " "
101
101
102
102
103
+
104
+
105
+ print ( """
106
+ 🐛 Checking if we should skip this test:
107
+ process.terminationStatus != 0 \( process. terminationStatus != 0 ? " YES " : " NO " )
108
+ standardErrorString.contains( " <unknown>:0: error: unknown argument: " ) \( standardErrorString. contains ( " <unknown>:0: error: unknown argument: " ) ? " YES " : " NO " )
109
+ """ )
103
110
if process. terminationStatus != 0 , standardErrorString. contains ( " <unknown>:0: error: unknown argument: " ) {
111
+ print ( " 🐛 Skipping this test " )
104
112
throw XCTSkip ( " Skipping integration tests due to rdar://134406349 " )
105
113
}
106
114
@@ -209,9 +217,16 @@ struct SwiftInvocationResult {
209
217
210
218
func assertExitStatusEquals(
211
219
_ expectedExitStatus: Int ,
220
+ testName: StaticString = #function,
212
221
file: StaticString = #file,
213
222
line: UInt = #line
214
223
) {
224
+ print ( """
225
+ 🐞 Did not skip \( testName)
226
+ exitStatus != 0 \( exitStatus != 0 ? " YES " : " NO " )
227
+ standardError.contains( " <unknown>:0: error: unknown argument: " ) \( standardError. contains ( " <unknown>:0: error: unknown argument: " ) ? " YES " : " NO " )
228
+ """ )
229
+
215
230
let environmentInfo = (
216
231
try ? gatherShellEnvironmentInfo ( )
217
232
) ?? " failed to gather environment information "
You can’t perform that action at this time.
0 commit comments