File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1157,6 +1157,23 @@ extension AllTests.AnalyzerTests {
1157
1157
}
1158
1158
}
1159
1159
1160
+ @Test func processingEnvironmentVariable( ) async throws {
1161
+ let environment = QueueIsolated < [ String : String ] ? > ( nil )
1162
+ try await withDependencies {
1163
+ $0. fileManager. fileExists = { _ in true }
1164
+ $0. shell. run = { @Sendable _, _, env in
1165
+ environment. setValue ( env)
1166
+ return #"{"name":"foo","products":[],"targets":[]}"#
1167
+ }
1168
+ } operation: {
1169
+ _ = try await Analyze . dumpPackage ( at: " /somepath " )
1170
+ try environment. withValue {
1171
+ let keys = try #require( $0? . keys)
1172
+ #expect( keys. contains ( " SPI_PROCESSING " ) )
1173
+ }
1174
+ }
1175
+ }
1176
+
1160
1177
@Test func issue_577( ) async throws {
1161
1178
// Duplicate "latest release" versions
1162
1179
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/577
You can’t perform that action at this time.
0 commit comments