Fix runGradingTest on windows

Fix for
https://gitlab.epfl.ch/lamp/cs-210-functional-programming-2019/issues/9,
classpath are separated by ";" instead of ":" on Windows (because ":" is
needed to write "C:\..."), the solution is to use `File.pathSeparator`
which will choose the correct character for the current OS.
This commit is contained in:
Guillaume Martres 2019-09-19 20:39:10 +02:00 committed by Timothée Floure
parent e56b51381d
commit dcd9a0d860

View File

@ -53,7 +53,7 @@ object StudentTasks extends AutoPlugin {
throw new MessageOnlyException(s"Could not find tests JarFile: $testSuiteJar")
}
val classPath = s"${(Test / dependencyClasspath).value.map(_.data).mkString(":")}:$testSuiteJar"
val classPath = s"${(Test / dependencyClasspath).value.map(_.data).mkString(File.pathSeparator)}${File.pathSeparator}$testSuiteJar"
val junitProcess =
Fork.java.fork(
ForkOptions(),