Skip to content

Commit 326fc3c

Browse files
committed
Load tasty files directly in -from-tasty tests
1 parent ca67e4d commit 326fc3c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
504504
tastyOutput.mkdir()
505505
val flags = flags0 and ("-d", tastyOutput.getPath) and "-from-tasty"
506506

507-
def tastyFileToClassName(f: JFile): String = {
508-
val pathStr = targetDir.toPath.relativize(f.toPath).toString.replace(JFile.separatorChar, '.')
509-
pathStr.stripSuffix(".tasty").stripSuffix(".hasTasty")
510-
}
511-
val classes = flattenFiles(targetDir).filter(isTastyFile).map(tastyFileToClassName)
507+
val classes = flattenFiles(targetDir).filter(isTastyFile).map(_.toString)
512508

513509
val reporter =
514510
TestReporter.reporter(realStdout, logLevel =

0 commit comments

Comments
 (0)