aboutsummaryrefslogtreecommitdiff
path: root/test/dotty/partest/DPConfig.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/dotty/partest/DPConfig.scala')
-rw-r--r--test/dotty/partest/DPConfig.scala4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/dotty/partest/DPConfig.scala b/test/dotty/partest/DPConfig.scala
index c744a9562..ad9c271ef 100644
--- a/test/dotty/partest/DPConfig.scala
+++ b/test/dotty/partest/DPConfig.scala
@@ -18,9 +18,7 @@ object DPConfig {
lazy val testDirs = {
val root = new File(testRoot)
val dirs = if (!root.exists) Array.empty[String] else root.listFiles.filter(_.isDirectory).map(_.getName)
- if (dirs.length > 0)
- println(s"Partest found generated source directories in $testRoot: " + dirs.mkString(", "))
- else
+ if (dirs.isEmpty)
throw new Exception("Partest did not detect any generated sources")
dirs
}