Skip to content

Commit d82dfcc

Browse files
committed
fix vulpix rewrite testing
previously, the test run would complete with success despite the rewrite test itself failing.
1 parent 53f5531 commit d82dfcc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,13 @@ trait ParallelTesting extends RunnerOrchestration { self =>
10641064
target.copy(dir = copyToDir(outDir, dir))
10651065
}
10661066

1067-
new RewriteTest(copiedTargets, checkFileMap, times, threadLimit, shouldFail || shouldSuppressOutput).executeTestSuite()
1067+
val test = new RewriteTest(copiedTargets, checkFileMap, times, threadLimit, shouldFail || shouldSuppressOutput).executeTestSuite()
1068+
1069+
cleanup()
1070+
1071+
if test.didFail then
1072+
fail("Rewrite test failed")
1073+
10681074
this
10691075
}
10701076

0 commit comments

Comments
 (0)