Skip to content

Commit 16320dc

Browse files
committed
Build each product separately
1 parent 19b11c7 commit 16320dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/FunctionalTests/ResourcesTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,14 @@ class ResourcesTests: XCTestCase {
5555
executables.append("SeaResource")
5656
#endif
5757

58-
// Both executables are built in one go
59-
_ = try executeSwiftBuild(prefix, configuration: .Release)
60-
6158
let binPath = try AbsolutePath(
6259
executeSwiftBuild(prefix, configuration: .Release, extraArgs: ["--show-bin-path"]).stdout
6360
.trimmingCharacters(in: .whitespacesAndNewlines)
6461
)
6562

6663
for execName in executables {
64+
_ = try executeSwiftBuild(prefix, configuration: .Release, extraArgs: ["--product", execName])
65+
6766
try withTemporaryDirectory(prefix: execName) { tmpDirPath in
6867
defer {
6968
// Unblock and remove the tmp dir on deinit.

0 commit comments

Comments
 (0)