@@ -871,7 +871,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
871
871
def checkCompile ()(implicit summaryReport : SummaryReporting ): this .type = {
872
872
val test = new PosTest (targets, times, threadLimit, shouldFail || shouldSuppressOutput).executeTestSuite()
873
873
874
- // cleanup()
874
+ cleanup()
875
875
876
876
if (! shouldFail && test.didFail) {
877
877
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 =>
992
992
target.toFile
993
993
}
994
994
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
-
1010
995
/** Builds a `CompilationTest` which performs the compilation `i` times on
1011
996
* each target
1012
997
*/
0 commit comments