From 4b42a198a1db7bb2613e9553e7e4250e6c66f4e3 Mon Sep 17 00:00:00 2001 From: vsalvis Date: Wed, 24 Jun 2015 16:41:37 +0200 Subject: Partest 3/3: Proper compiler output redirection --- test/dotty/partest/DPConfig.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/dotty/partest/DPConfig.scala') diff --git a/test/dotty/partest/DPConfig.scala b/test/dotty/partest/DPConfig.scala index ad9c271ef..640dfd021 100644 --- a/test/dotty/partest/DPConfig.scala +++ b/test/dotty/partest/DPConfig.scala @@ -1,7 +1,8 @@ package dotty.partest -import java.io.File import scala.collection.JavaConversions._ +import scala.reflect.io.Path +import java.io.File /** Dotty Partest runs all tests in the provided testDirs located under @@ -14,7 +15,9 @@ import scala.collection.JavaConversions._ * otherwise pos/__defaultFlags.flags are used if the file exists). */ object DPConfig { - val testRoot = "./tests/partest-generated" + val testRoot = (Path(".") / Path("tests") / Path("partest-generated")).toString + val genLog = Path(testRoot) / Path("gen.log") + lazy val testDirs = { val root = new File(testRoot) val dirs = if (!root.exists) Array.empty[String] else root.listFiles.filter(_.isDirectory).map(_.getName) -- cgit v1.2.3