@@ -48,7 +48,8 @@ final class SDKCommandTests: CommandsTestCase {
48
48
)
49
49
50
50
if command == . experimentalSDK {
51
- XCTAssertMatch ( stdout, . contains( deprecationWarning) )
51
+ XCTAssertMatch ( stderr, . contains( deprecationWarning) )
52
+ XCTAssertNoMatch ( stdout, . contains( deprecationWarning) )
52
53
}
53
54
54
55
// We only expect tool's output on the stdout stream.
@@ -57,18 +58,16 @@ final class SDKCommandTests: CommandsTestCase {
57
58
. contains( " \( bundle) ` successfully installed as test-sdk.artifactbundle. " )
58
59
)
59
60
60
- XCTAssertEqual ( stderr. count, 0 )
61
-
62
61
( stdout, stderr) = try command. execute (
63
62
[ " list " , " --swift-sdks-path " , fixturePath. pathString] )
64
63
65
64
if command == . experimentalSDK {
66
- XCTAssertMatch ( stdout, . contains( deprecationWarning) )
65
+ XCTAssertMatch ( stderr, . contains( deprecationWarning) )
66
+ XCTAssertNoMatch ( stdout, . contains( deprecationWarning) )
67
67
}
68
68
69
69
// We only expect tool's output on the stdout stream.
70
70
XCTAssertMatch ( stdout, . contains( " test-artifact " ) )
71
- XCTAssertEqual ( stderr. count, 0 )
72
71
73
72
XCTAssertThrowsError ( try command. execute (
74
73
[
@@ -91,30 +90,30 @@ final class SDKCommandTests: CommandsTestCase {
91
90
}
92
91
93
92
if command == . experimentalSDK {
94
- XCTAssertMatch ( stdout , . contains( deprecationWarning) )
93
+ XCTAssertMatch ( stderr , . contains( deprecationWarning) )
95
94
}
96
95
97
96
( stdout, stderr) = try command. execute (
98
97
[ " remove " , " --swift-sdks-path " , fixturePath. pathString, " test-artifact " ] )
99
98
100
99
if command == . experimentalSDK {
101
- XCTAssertMatch ( stdout, . contains( deprecationWarning) )
100
+ XCTAssertMatch ( stderr, . contains( deprecationWarning) )
101
+ XCTAssertNoMatch ( stdout, . contains( deprecationWarning) )
102
102
}
103
103
104
104
// We only expect tool's output on the stdout stream.
105
105
XCTAssertMatch ( stdout, . contains( " test-sdk.artifactbundle` was successfully removed from the file system. " ) )
106
- XCTAssertEqual ( stderr. count, 0 )
107
106
108
107
( stdout, stderr) = try command. execute (
109
108
[ " list " , " --swift-sdks-path " , fixturePath. pathString] )
110
109
111
110
if command == . experimentalSDK {
112
- XCTAssertMatch ( stdout, . contains( deprecationWarning) )
111
+ XCTAssertMatch ( stderr, . contains( deprecationWarning) )
112
+ XCTAssertNoMatch ( stdout, . contains( deprecationWarning) )
113
113
}
114
114
115
115
// We only expect tool's output on the stdout stream.
116
116
XCTAssertNoMatch ( stdout, . contains( " test-artifact " ) )
117
- XCTAssertEqual ( stderr. count, 0 )
118
117
}
119
118
}
120
119
}
0 commit comments