From 7d7e2dcd0915ac69991ec4f222581fc0b6692d83 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Wed, 8 Jan 2025 14:35:33 +0000 Subject: [PATCH] Fix SeparateCompilationSource toString --- compiler/test/dotty/tools/vulpix/ParallelTesting.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala index 29e64163b833..bb744afbbbf3 100644 --- a/compiler/test/dotty/tools/vulpix/ParallelTesting.scala +++ b/compiler/test/dotty/tools/vulpix/ParallelTesting.scala @@ -156,6 +156,11 @@ trait ParallelTesting extends RunnerOrchestration { self => } } } + + final override def toString: String = sourceFiles match { + case Array(f) => f.getPath + case _ => outDir.getPath.stripPrefix(defaultOutputDir).stripPrefix(name).stripPrefix("/") + } } private sealed trait FromTastyCompilationMode @@ -176,8 +181,6 @@ trait ParallelTesting extends RunnerOrchestration { self => decompilation: Boolean = false ) extends TestSource { def sourceFiles: Array[JFile] = files.filter(isSourceFile) - - override def toString() = sourceFiles match { case Array(f) => f.getPath case _ => outDir.getPath } } /** A test source whose files will be compiled separately according to their