@@ -48,7 +48,8 @@ final class SDKCommandTests: CommandsTestCase {
4848 )
4949
5050 if command == . experimentalSDK {
51- XCTAssertMatch ( stdout, . contains( deprecationWarning) )
51+ XCTAssertMatch ( stderr, . contains( deprecationWarning) )
52+ XCTAssertNoMatch ( stdout, . contains( deprecationWarning) )
5253 }
5354
5455 // We only expect tool's output on the stdout stream.
@@ -57,18 +58,16 @@ final class SDKCommandTests: CommandsTestCase {
5758 . contains( " \( bundle) ` successfully installed as test-sdk.artifactbundle. " )
5859 )
5960
60- XCTAssertEqual ( stderr. count, 0 )
61-
6261 ( stdout, stderr) = try command. execute (
6362 [ " list " , " --swift-sdks-path " , fixturePath. pathString] )
6463
6564 if command == . experimentalSDK {
66- XCTAssertMatch ( stdout, . contains( deprecationWarning) )
65+ XCTAssertMatch ( stderr, . contains( deprecationWarning) )
66+ XCTAssertNoMatch ( stdout, . contains( deprecationWarning) )
6767 }
6868
6969 // We only expect tool's output on the stdout stream.
7070 XCTAssertMatch ( stdout, . contains( " test-artifact " ) )
71- XCTAssertEqual ( stderr. count, 0 )
7271
7372 XCTAssertThrowsError ( try command. execute (
7473 [
@@ -91,30 +90,30 @@ final class SDKCommandTests: CommandsTestCase {
9190 }
9291
9392 if command == . experimentalSDK {
94- XCTAssertMatch ( stdout , . contains( deprecationWarning) )
93+ XCTAssertMatch ( stderr , . contains( deprecationWarning) )
9594 }
9695
9796 ( stdout, stderr) = try command. execute (
9897 [ " remove " , " --swift-sdks-path " , fixturePath. pathString, " test-artifact " ] )
9998
10099 if command == . experimentalSDK {
101- XCTAssertMatch ( stdout, . contains( deprecationWarning) )
100+ XCTAssertMatch ( stderr, . contains( deprecationWarning) )
101+ XCTAssertNoMatch ( stdout, . contains( deprecationWarning) )
102102 }
103103
104104 // We only expect tool's output on the stdout stream.
105105 XCTAssertMatch ( stdout, . contains( " test-sdk.artifactbundle` was successfully removed from the file system. " ) )
106- XCTAssertEqual ( stderr. count, 0 )
107106
108107 ( stdout, stderr) = try command. execute (
109108 [ " list " , " --swift-sdks-path " , fixturePath. pathString] )
110109
111110 if command == . experimentalSDK {
112- XCTAssertMatch ( stdout, . contains( deprecationWarning) )
111+ XCTAssertMatch ( stderr, . contains( deprecationWarning) )
112+ XCTAssertNoMatch ( stdout, . contains( deprecationWarning) )
113113 }
114114
115115 // We only expect tool's output on the stdout stream.
116116 XCTAssertNoMatch ( stdout, . contains( " test-artifact " ) )
117- XCTAssertEqual ( stderr. count, 0 )
118117 }
119118 }
120119 }
0 commit comments