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