From 491e4cd31e572953e5a74a988b41f2495fcd9a84 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Wed, 8 Jan 2025 14:35:33 +0000 Subject: [PATCH] Fix SeparateCompilationSource toString [Cherry-picked 7d7e2dcd0915ac69991ec4f222581fc0b6692d83] --- 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 b4189deb805c..7d32b3d6c9fa 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("/") + } } /** A group of files that may all be compiled together, with the same flags @@ -170,8 +175,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