@@ -871,7 +871,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
871871 def checkCompile ()(implicit summaryReport : SummaryReporting ): this .type = {
872872 val test = new PosTest (targets, times, threadLimit, shouldFail || shouldSuppressOutput).executeTestSuite()
873873
874- // cleanup()
874+ cleanup()
875875
876876 if (! shouldFail && test.didFail) {
877877 fail(s " Expected no errors when compiling, failed for the following reason(s): \n ${ reasonsForFailure(test) }" )
@@ -992,21 +992,6 @@ trait ParallelTesting extends RunnerOrchestration { self =>
992992 target.toFile
993993 }
994994
995- /** Builds a new `CompilationTest` where we have copied the target files to
996- * the out directory. This is needed for tests that modify the
997- * source, such as `-rewrite` tests
998- */
999- def copyToTarget ()(implicit summary : SummaryReporting ): CompilationTest =
1000- new CompilationTest (
1001- targets.map {
1002- case target @ JointCompilationSource (_, files, _, outDir, _, _) =>
1003- target.copy(files = files.map(copyToDir(outDir,_)))
1004- case target @ SeparateCompilationSource (_, dir, _, outDir) =>
1005- target.copy(dir = copyToDir(outDir, dir))
1006- },
1007- times, shouldDelete, threadLimit, shouldFail, shouldSuppressOutput
1008- )
1009-
1010995 /** Builds a `CompilationTest` which performs the compilation `i` times on
1011996 * each target
1012997 */
0 commit comments