diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-11-14 20:04:24 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:07 +0100 |
commit | 1b19afa6184a0237a803f13e8491bfcb51b7585e (patch) | |
tree | 198f5c724e3177f5f98eea89f9a7501908654a17 /sbt-bridge/bridge/src/sbt-test/source-dependencies/trait-private-object/project/DottyInjectedPlugin.scala | |
parent | cc56d3d977eab5fa88f0a1b0ced5bd4f99accae9 (diff) | |
download | dotty-1b19afa6184a0237a803f13e8491bfcb51b7585e.tar.gz dotty-1b19afa6184a0237a803f13e8491bfcb51b7585e.tar.bz2 dotty-1b19afa6184a0237a803f13e8491bfcb51b7585e.zip |
Run dotty tests with the correct baseDirectory
Before this commit, Build.scala contained:
baseDirectory in run := baseDirectory.value / "..",
The goal of this line is that when invoking the compiler using `run` or
`dotc`, the working directory is the root of the dotty project, which is
convenient for testing.
However, this line also affects the working directory of
`dotty-compiler/runPartestRunner`, but not of `dotty-compiler/test`.
The result was that `dotty-compiler/test` was broken, and fixing the
paths in the code would break `partest`.
We solve this by using a different baseDirectory when running partest.
Diffstat (limited to 'sbt-bridge/bridge/src/sbt-test/source-dependencies/trait-private-object/project/DottyInjectedPlugin.scala')
0 files changed, 0 insertions, 0 deletions