Skip to content

Commit d8608cf

Browse files
committed
Honour --srcpath through the SBT runner
Currently, only tests based in `test/files/...` can be tested in partest through SBT. This commit will honour `--srcpath scaladoc`, for example, before defaulting to `files`.
1 parent db21bdb commit d8608cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partest/scala/tools/partest/nest/SBTRunner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SBTRunner(partestFingerprint: Fingerprint, eventHandler: EventHandler, log
3636
}
3737

3838
override val suiteRunner = new SuiteRunner(
39-
testSourcePath = Option(srcDir) getOrElse PartestDefaults.sourcePath,
39+
testSourcePath = optSourcePath orElse Option(srcDir) getOrElse PartestDefaults.sourcePath,
4040
new FileManager(testClassLoader = testClassLoader),
4141
updateCheck = optUpdateCheck,
4242
failed = optFailed,

0 commit comments

Comments
 (0)