@@ -759,8 +759,8 @@ trait ParallelTesting extends RunnerOrchestration { self =>
759759 failTestSource(testSource)
760760 }
761761
762- def reporterOutputLines (reporter : TestReporter ): List [String ] = {
763- reporter. allErrors.flatMap { error =>
762+ def reporterOutputLines (reporters : List [ TestReporter ] ): List [String ] = {
763+ reporters.flatMap(_. allErrors).sortBy(_.pos.source.toString) .flatMap { error =>
764764 (error.pos.span.toString + " in " + error.pos.source.file.name) :: error.getMessage().lines.toList
765765 }
766766 }
@@ -779,7 +779,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
779779 if (! file.isDirectory) {
780780 val checkFile = new JFile (file.getAbsolutePath.replaceFirst(" \\ .scala$" , " .check" ))
781781 if (checkFile.exists)
782- checkFileTest(testSource.title, checkFile, reporterOutputLines(reporter))
782+ checkFileTest(testSource.title, checkFile, reporterOutputLines(reporter :: Nil ))
783783 }
784784 }
785785 if (reporter.compilerCrashed || actualErrors > 0 )
@@ -800,7 +800,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
800800
801801 val checkFile = new JFile (dir.getAbsolutePath + " .check" )
802802 if (checkFile.exists)
803- checkFileTest(testSource.title, checkFile, reporters.flatMap(reporter => reporterOutputLines(reporter) ))
803+ checkFileTest(testSource.title, checkFile, reporterOutputLines(reporters ))
804804
805805 (compilerCrashed, expectedErrors, actualErrors, () => getMissingExpectedErrors(errorMap, errors), errorMap)
806806 }
0 commit comments