diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-18 14:32:17 -0700 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-03-18 14:32:17 -0700 |
commit | fdd924eaeb2e31a3772733765eeb5882eec0f593 (patch) | |
tree | c1397d173b7f994e17a40ca814fc29f4594a9d30 /scalalib/src | |
parent | 3715c7bfb88de8daa86cd663d22057ec776cedcc (diff) | |
download | mill-fdd924eaeb2e31a3772733765eeb5882eec0f593.tar.gz mill-fdd924eaeb2e31a3772733765eeb5882eec0f593.tar.bz2 mill-fdd924eaeb2e31a3772733765eeb5882eec0f593.zip |
properly pass arguments to forked tests in a way that doesn't botch whitespaces
Diffstat (limited to 'scalalib/src')
-rw-r--r-- | scalalib/src/mill/scalalib/ScalaModule.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scalalib/src/mill/scalalib/ScalaModule.scala b/scalalib/src/mill/scalalib/ScalaModule.scala index c06fb8f3..e5a20e7e 100644 --- a/scalalib/src/mill/scalalib/ScalaModule.scala +++ b/scalalib/src/mill/scalalib/ScalaModule.scala @@ -375,14 +375,14 @@ trait TestModule extends ScalaModule with TaskModule { classPath = scalaWorker.classpath(), jvmArgs = forkArgs(), envArgs = forkEnv(), - mainArgs = Seq( - testFrameworks().mkString(" "), - runClasspath().map(_.path).mkString(" "), - Seq(compile().classes.path).mkString(" "), - args.mkString(" "), - outputPath.toString, - T.ctx().log.colored.toString - ), + mainArgs = + Seq(testFrameworks().length.toString) ++ + testFrameworks() ++ + Seq(runClasspath().length.toString) ++ + runClasspath().map(_.path.toString) ++ + Seq(args.length.toString) ++ + args ++ + Seq(outputPath.toString, T.ctx().log.colored.toString, compile().classes.path.toString), workingDir = forkWorkingDir ) |