From ed31c2a82d6b59ef092e17bd8811278f5ffd15e9 Mon Sep 17 00:00:00 2001 From: vsalvis Date: Tue, 19 May 2015 14:51:19 +0200 Subject: Less verbose partest with compiler output redirected, better --verbose output --- test/dotty/partest/DPConfig.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/dotty/partest/DPConfig.scala') 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 } -- cgit v1.2.3