From 5a019e4c52fa3502b74b4ec927050a991a52f314 Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Tue, 4 Mar 2008 17:26:33 +0000 Subject: Added more debug info to partest. --- src/partest/scala/tools/partest/nest/ConsoleFileManager.scala | 6 ++++++ src/partest/scala/tools/partest/nest/Worker.scala | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/partest/scala/tools/partest/nest/ConsoleFileManager.scala b/src/partest/scala/tools/partest/nest/ConsoleFileManager.scala index c25a91379a..e68f3383b2 100644 --- a/src/partest/scala/tools/partest/nest/ConsoleFileManager.scala +++ b/src/partest/scala/tools/partest/nest/ConsoleFileManager.scala @@ -19,6 +19,8 @@ class ConsoleFileManager extends FileManager { var JAVACMD = System.getProperty("scalatest.javacmd", "java") val PREFIX = (new File(SCALAHOME)).getAbsolutePath + val debug: Boolean = System.getProperty("partest.debug", "false") equals "true" + /* if [ -d "$PREFIX/test" ]; then TESTROOT="$PREFIX/test"; @@ -47,6 +49,10 @@ else def accept(dir: File, name: String) = name endsWith ".jar" }) map {file => file.getCanonicalFile.getAbsolutePath}).mkString(""+File.pathSeparator) } + if (debug) { + println("CLASSPATH:") + println(CLASSPATH) + } def findLatest() { def prefixFile(relPath: String): File = diff --git a/src/partest/scala/tools/partest/nest/Worker.scala b/src/partest/scala/tools/partest/nest/Worker.scala index 336b0a0e09..6c31366a2a 100644 --- a/src/partest/scala/tools/partest/nest/Worker.scala +++ b/src/partest/scala/tools/partest/nest/Worker.scala @@ -253,7 +253,7 @@ class Worker(val fileManager: FileManager) extends Actor { swr.flush() NestUI.normal(swr.toString) if (!success && fileManager.showDiff) NestUI.normal(diff) - if (!success && fileManager.showLog) NestUI.normal(log) + if (!success && fileManager.showLog) /*NestUI.normal(log)*/ showLog(logFile) } } // for each file NestUI.verbose("finished testing "+kind+" with "+errors+" errors") -- cgit v1.2.3