diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-03-09 17:01:47 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-03-29 10:33:22 +0200 |
commit | 0620c2b2602b44e569135b6b0648b2bd5994b78b (patch) | |
tree | af9c3d8d1e7635305db3f0ad3fbc919500f9b7df /compiler/test/dotty/tools/dotc | |
parent | 7b75bb24b68c87b41d714f0510fc4fa18b3cfedd (diff) | |
download | dotty-0620c2b2602b44e569135b6b0648b2bd5994b78b.tar.gz dotty-0620c2b2602b44e569135b6b0648b2bd5994b78b.tar.bz2 dotty-0620c2b2602b44e569135b6b0648b2bd5994b78b.zip |
Prefix out directory with name of test
Diffstat (limited to 'compiler/test/dotty/tools/dotc')
-rw-r--r-- | compiler/test/dotty/tools/dotc/ParallelTesting.scala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/test/dotty/tools/dotc/ParallelTesting.scala b/compiler/test/dotty/tools/dotc/ParallelTesting.scala index eada2c763..711fc86a3 100644 --- a/compiler/test/dotty/tools/dotc/ParallelTesting.scala +++ b/compiler/test/dotty/tools/dotc/ParallelTesting.scala @@ -61,7 +61,12 @@ trait ParallelTesting { files -> reporter.errors } - def compileFilesInDir(f: String, flags: Array[String])(implicit outDir: String): Unit = { + def compileFilesInDir(f: String, flags: Array[String])(implicit outDirectory: String): Unit = { + // each calling method gets its own unique output directory, in which we + // place the dir being compiled: + val callingMethod = Thread.currentThread.getStackTrace.apply(3).getMethodName + val outDir = outDirectory + callingMethod + "/" + val dir = new JFile(f) require(f.contains("/tests"), "only allowed to run integration tests from `tests` dir using this method") require(dir.isDirectory && dir.exists, "passed non-directory to `compileFilesInDir`") |