Skip to content

Commit 979d601

Browse files
authored
Merge pull request #192 from scala/backport-lts-3.3-22365
Backport "Fix SeparateCompilationSource toString" to 3.3 LTS
2 parents 1f40680 + 491e4cd commit 979d601

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ trait ParallelTesting extends RunnerOrchestration { self =>
156156
}
157157
}
158158
}
159+
160+
final override def toString: String = sourceFiles match {
161+
case Array(f) => f.getPath
162+
case _ => outDir.getPath.stripPrefix(defaultOutputDir).stripPrefix(name).stripPrefix("/")
163+
}
159164
}
160165

161166
/** A group of files that may all be compiled together, with the same flags
@@ -170,8 +175,6 @@ trait ParallelTesting extends RunnerOrchestration { self =>
170175
decompilation: Boolean = false
171176
) extends TestSource {
172177
def sourceFiles: Array[JFile] = files.filter(isSourceFile)
173-
174-
override def toString() = sourceFiles match { case Array(f) => f.getPath case _ => outDir.getPath }
175178
}
176179

177180
/** A test source whose files will be compiled separately according to their

0 commit comments

Comments
 (0)