-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #5129: Use system-dependent path separator #5130
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
Conversation
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.
Hello, and thank you for opening this PR! 🎉
All contributors have signed the CLA, thank you! ❤️
Have an awesome day! ☀️
@@ -12,10 +12,10 @@ final case class TestFlags( | |||
TestFlags(defaultClassPath, runClassPath, options diff flags) | |||
|
|||
def withClasspath(classPath: String): TestFlags = | |||
TestFlags(s"$defaultClassPath:$classPath", runClassPath, options) | |||
TestFlags(s"$defaultClassPath${sys.props("path.separator")}$classPath", runClassPath, options) |
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.
Isn't java.io.File.pathSeparator
working?
@@ -54,7 +54,7 @@ trait ParallelTesting extends RunnerOrchestration { self => | |||
def outDir: JFile | |||
def flags: TestFlags | |||
|
|||
def runClassPath: String = outDir.getAbsolutePath + ":" + flags.runClassPath | |||
def runClassPath: String = outDir.getAbsolutePath + java.io.File.pathSeparator + flags.runClassPath |
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.
File is already imported as JFile, please use that.
|
||
def withRunClasspath(classPath: String): TestFlags = | ||
TestFlags(defaultClassPath, s"$runClassPath:$classPath", options) | ||
TestFlags(defaultClassPath, s"$runClassPath${java.io.File.pathSeparator}$classPath", options) |
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’d prefer if you import File here too (maybe as JFile for consistency).
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.
Requesting changes detailed above.
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.
Thanks a lot!
It's not completely enough for testCompilation
to run successfully on my machine (log) but at least now it does most of it right (as opposed to everything wrong before).
BTW java.nio.file.NoSuchFileException: ...i4947c\Aux.tasty in the log is the result of the #5148 |
@melekhove Merging, thanks! |
No description provided.