File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compilation/src/main/scala/scala/tools/nsc Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,9 @@ class ScalacBenchmark extends BenchmarkDriver {
4747 @ Param (value = Array (" " ))
4848 var extraArgs : String = _
4949
50- @ Param (value = Array (" ../corpus" ))
51- var corpusPath : String = " ../corpus"
50+ final val DefaultCorpusPath = " "
51+ @ Param (value = Array (DefaultCorpusPath ))
52+ var corpusPath : String = DefaultCorpusPath
5253
5354 // This parameter is set by ScalacBenchmarkRunner / UploadingRunner based on the Scala version.
5455 // When running the benchmark directly the "latest" symlink is used.
@@ -93,7 +94,7 @@ class ScalacBenchmark extends BenchmarkDriver {
9394 BenchmarkUtils .deleteRecursive(tempDir.toPath)
9495 }
9596
96- def corpusSourcePath : Path = Paths .get(s " $corpusPath/ $source/ $corpusVersion" )
97+ def corpusSourcePath : Path = Paths .get(s " ${ if ( corpusPath == DefaultCorpusPath ) " ../corpus " else corpusPath} / $source/ $corpusVersion" )
9798
9899 @ Setup (Level .Trial ) def initDepsClasspath (): Unit = {
99100 val classPath = BenchmarkUtils .initDeps(corpusSourcePath)
You can’t perform that action at this time.
0 commit comments