-
Notifications
You must be signed in to change notification settings - Fork 1.4k
swift test: Fix incorrect wasmkit
arguments
#9114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -966,6 +966,9 @@ final class TestRunner { | |
args.append(runnerPath.pathString) | ||
args.append(contentsOf: runner.extraCLIOptions) | ||
args.append(testPath.relative(to: localFileSystem.currentWorkingDirectory!).pathString) | ||
if runner.path?.components.last == "wasmkit" { | ||
args.append("--") | ||
|
||
} | ||
args.append(contentsOf: self.additionalArguments) | ||
} else { | ||
#if os(macOS) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a more robust way to check for WasmKit?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. Yes, it feels somewhat icky to check for a path component, but test runners from toolsets and Swift SDKs provide no other identification. Given that's all we have, why wouldn't we consider this simple and robust enough?