Skip to content

Commit b72dcca

Browse files
authored
tests: End to end tests still require host toolchains (#175)
The end to end tests still assume that the host toolchain will be embedded in the SDK. There is currently no provision in the test harness for installing a toolchain before running the tests, so for now we must use the --host-toolchain flag when building SDKs.
1 parent 495c5a3 commit b72dcca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/SwiftSDKGeneratorTests/EndToEndTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ final class RepeatedBuildTests: XCTestCase {
124124

125125
// Test that an existing SDK can be rebuilt without cleaning up.
126126
// Test with no arguments by default:
127-
var possibleArguments = [""]
127+
var possibleArguments = ["--host-toolchain"]
128128
do {
129129
try await Shell.run("docker ps")
130130
possibleArguments.append("--with-docker --linux-distribution-name rhel --linux-distribution-version ubi9")
@@ -176,6 +176,7 @@ struct SDKConfiguration {
176176
var sdkGeneratorArguments: String {
177177
return [
178178
"--sdk-name \(bundleName)",
179+
"--host-toolchain",
179180
withDocker ? "--with-docker" : nil,
180181
"--swift-version \(swiftVersion)-RELEASE",
181182
testLinuxSwiftSDKs ? "--host \(hostArch!)-unknown-linux-gnu" : nil,

0 commit comments

Comments
 (0)