Skip to content

Commit c4742ee

Browse files
Don't print the diffs but only the actual output for checkfile-enabled tests
1 parent a8c3d25 commit c4742ee

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -714,16 +714,11 @@ trait ParallelTesting extends RunnerOrchestration { self =>
714714
def linesMatch =
715715
(outputLines, checkLines).zipped.forall(_ == _)
716716

717-
if (outputLines.length != checkLines.length || !linesMatch) {
718-
// Print diff to files and summary:
719-
val diff = DiffUtil.mkColoredLineDiff(checkLines :+ DiffUtil.EOF, outputLines :+ DiffUtil.EOF)
720-
721-
Some(
722-
s"""|Output from '$sourceTitle' did not match check file.
723-
|Diff (expected on the left, actual right):
724-
|""".stripMargin + diff + "\n")
725-
} else None
726-
717+
if (outputLines.length != checkLines.length || !linesMatch) Some(
718+
s"""|Output from '$sourceTitle' did not match check file. Actual output:
719+
|${outputLines.mkString(EOL)}
720+
|""".stripMargin + "\n")
721+
else None
727722
}
728723

729724
/** The `CompilationTest` is the main interface to `ParallelTesting`, it

0 commit comments

Comments
 (0)