Skip to content

Commit 241facb

Browse files
Fix platform requirements of installloc directory tests (#870)
1 parent 6bffad0 commit 241facb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/SWBTaskConstructionTests/InstallLocTaskConstructionTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ fileprivate struct InstallLocTaskConstructionTests: CoreBasedTests {
654654
}
655655

656656
/// Test an App that has a directory or package (not an explicit bundle) in resources phase
657-
@Test(.requireSDKs(.macOS, .iOS))
657+
@Test(.requireSDKs(.macOS))
658658
func embeddedDirectoriesInResources() async throws {
659659
try await withTemporaryDirectory { tmpDir in
660660
let srcRoot = tmpDir.join("srcroot")
@@ -704,7 +704,7 @@ fileprivate struct InstallLocTaskConstructionTests: CoreBasedTests {
704704
}
705705
}
706706

707-
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug"), runDestination: .iOS, fs: fs) { results in
707+
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug"), runDestination: .macOS, fs: fs) { results in
708708
// Ignore all Gate, build directory, SymLink, and MkDir tasks.
709709
results.checkTasks(.matchRuleType("Gate")) { _ in }
710710
results.checkTasks(.matchRuleType("CreateBuildDirectory")) { _ in }
@@ -723,7 +723,7 @@ fileprivate struct InstallLocTaskConstructionTests: CoreBasedTests {
723723
}
724724

725725
// INSTALLLOC_LANGUAGE set to "ja"
726-
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug", overrides: ["INSTALLLOC_LANGUAGE": "ja"]), runDestination: .iOS, fs: fs) { results in
726+
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug", overrides: ["INSTALLLOC_LANGUAGE": "ja"]), runDestination: .macOS, fs: fs) { results in
727727
// Ignore all Gate, build directory, MkDir, and SymLink tasks.
728728
results.checkTasks(.matchRuleType("Gate")) { _ in }
729729
results.checkTasks(.matchRuleType("CreateBuildDirectory")) { _ in }
@@ -744,7 +744,7 @@ fileprivate struct InstallLocTaskConstructionTests: CoreBasedTests {
744744

745745
// INSTALLLOC_LANGUAGE set to "zh_TW" and "ja"
746746
let specificLangs = ["zh_TW", "ja"]
747-
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug", overrides: ["INSTALLLOC_LANGUAGE": specificLangs.joined(separator: " ")]), runDestination: .iOS, fs: fs) { results in
747+
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug", overrides: ["INSTALLLOC_LANGUAGE": specificLangs.joined(separator: " ")]), runDestination: .macOS, fs: fs) { results in
748748
// Ignore all Gate, build directory, MkDir, and SymLink tasks.
749749
results.checkTasks(.matchRuleType("Gate")) { _ in }
750750
results.checkTasks(.matchRuleType("CreateBuildDirectory")) { _ in }
@@ -816,7 +816,7 @@ fileprivate struct InstallLocTaskConstructionTests: CoreBasedTests {
816816
}
817817
}
818818

819-
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug"), runDestination: .iOS, fs: fs) { results in
819+
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug"), runDestination: .macOS, fs: fs) { results in
820820
// Ignore all Gate, build directory, SymLink, and MkDir tasks.
821821
results.checkTasks(.matchRuleType("Gate")) { _ in }
822822
results.checkTasks(.matchRuleType("CreateBuildDirectory")) { _ in }
@@ -835,7 +835,7 @@ fileprivate struct InstallLocTaskConstructionTests: CoreBasedTests {
835835
}
836836

837837
// INSTALLLOC_LANGUAGE set to "ja"
838-
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug", overrides: ["INSTALLLOC_LANGUAGE": "ja"]), runDestination: .iOS, fs: fs) { results in
838+
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug", overrides: ["INSTALLLOC_LANGUAGE": "ja"]), runDestination: .macOS, fs: fs) { results in
839839
// Ignore all Gate, build directory, MkDir, and SymLink tasks.
840840
results.checkTasks(.matchRuleType("Gate")) { _ in }
841841
results.checkTasks(.matchRuleType("CreateBuildDirectory")) { _ in }
@@ -856,7 +856,7 @@ fileprivate struct InstallLocTaskConstructionTests: CoreBasedTests {
856856

857857
// INSTALLLOC_LANGUAGE set to "zh_TW" and "ja"
858858
let specificLangs = ["zh_TW", "ja"]
859-
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug", overrides: ["INSTALLLOC_LANGUAGE": specificLangs.joined(separator: " ")]), runDestination: .iOS, fs: fs) { results in
859+
await tester.checkBuild(BuildParameters(action: .installLoc, configuration: "Debug", overrides: ["INSTALLLOC_LANGUAGE": specificLangs.joined(separator: " ")]), runDestination: .macOS, fs: fs) { results in
860860
// Ignore all Gate, build directory, MkDir, and SymLink tasks.
861861
results.checkTasks(.matchRuleType("Gate")) { _ in }
862862
results.checkTasks(.matchRuleType("CreateBuildDirectory")) { _ in }

0 commit comments

Comments
 (0)