Skip to content

Commit ef1bd27

Browse files
Revert "Run dotty tests with the correct baseDirectory"
This reverts commit 1b19afa.
1 parent ba2fb3c commit ef1bd27

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

project/Build.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,8 @@ object Build {
495495
"org.scala-lang" % "scala-library" % scalacVersion % "test"
496496
),
497497

498-
// For convenience, change the baseDirectory when running the compiler
499-
baseDirectory in (Compile, run) := baseDirectory.value / "..",
500-
// .. but not when running test
501-
baseDirectory in (Test, run) := baseDirectory.value,
498+
// Set run baseDir to be root of project, makes dotc saner
499+
baseDirectory in run := baseDirectory.value / "..",
502500

503501
test in Test := {
504502
// Exclude legacy tests by default

0 commit comments

Comments
 (0)