@@ -46,6 +46,9 @@ trait ParallelTesting extends RunnerOrchestration { self =>
4646 */
4747 def testFilter : Option [String ]
4848
49+ /** Tests should override the checkfiles with the current output */
50+ def updateCheckFiles : Boolean
51+
4952 /** A test source whose files or directory of files is to be compiled
5053 * in a specific way defined by the `Test`
5154 */
@@ -550,7 +553,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
550553
551554 if (output.mkString(EOL ) != check) {
552555 val outFile = dotty.tools.io.File (checkFile.toPath).addExtension(" .out" )
553- if (summaryReport. updateCheckFiles) {
556+ if (updateCheckFiles) {
554557 updateCheckFile(checkFile, output)
555558 } else {
556559 outFile.writeAll(output.mkString(" " , EOL , " " ))
@@ -642,7 +645,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
642645 // Fail target:
643646 failTestSource(testSource)
644647
645- if (summaryReport. updateCheckFiles)
648+ if (updateCheckFiles)
646649 updateCheckFile(checkFile.get, outputLines)
647650 }
648651 }
@@ -781,7 +784,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
781784 val expexted = Source .fromFile(checkFile, " UTF-8" ).getLines().toList
782785 for (msg <- diffMessage(sourceName, actual, expexted)) {
783786 fail(msg)
784- if (summaryReport. updateCheckFiles)
787+ if (updateCheckFiles)
785788 updateCheckFile(checkFile, actual)
786789 }
787790 }
0 commit comments