diff options
author | vsalvis <salvisbergvera@gmail.com> | 2015-06-24 16:41:37 +0200 |
---|---|---|
committer | vsalvis <salvisbergvera@gmail.com> | 2015-06-24 16:41:37 +0200 |
commit | 4b42a198a1db7bb2613e9553e7e4250e6c66f4e3 (patch) | |
tree | 32caf9cc8730393b015818f1367f8c8c7f8008a9 /test/dotty/partest/DPConfig.scala | |
parent | 5e4e0cf35036906423e13eb74093af07a29f0521 (diff) | |
download | dotty-4b42a198a1db7bb2613e9553e7e4250e6c66f4e3.tar.gz dotty-4b42a198a1db7bb2613e9553e7e4250e6c66f4e3.tar.bz2 dotty-4b42a198a1db7bb2613e9553e7e4250e6c66f4e3.zip |
Partest 3/3: Proper compiler output redirection
Diffstat (limited to 'test/dotty/partest/DPConfig.scala')
-rw-r--r-- | test/dotty/partest/DPConfig.scala | 7 |
1 files changed, 5 insertions, 2 deletions
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) |