diff --git a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala index b5534337e82b..08f9b9ae2828 100644 --- a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala +++ b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala @@ -411,7 +411,7 @@ trait ParallelTesting extends RunnerOrchestration { self => if (isInteractive && !suppressAllOutput) pool.submit(createProgressMonitor) - filteredSources.foreach { target => + val eventualResults = filteredSources.map { target => pool.submit(encapsulatedCompilation(target)) } @@ -423,6 +423,8 @@ trait ParallelTesting extends RunnerOrchestration { self => throw new TimeoutException("Compiling targets timed out") } + eventualResults.foreach(_.get) + if (didFail) { reportFailed() failedTestSources.toSet.foreach(addFailedTest)