From a2b5bd348442e813179000338ed141e4f487f601 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 13 Oct 2012 18:25:59 +0200 Subject: [PATCH] output only the last portion of idea.log --- .../groovy/compiler/GroovyCompilerTest.groovy | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyCompilerTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyCompilerTest.groovy index cc46890f9531..ed8586b0ea1a 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyCompilerTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyCompilerTest.groovy @@ -208,15 +208,6 @@ public abstract class GroovyCompilerTest extends GroovyCompilerTestCase { @Override void runBare() { - def ideaLog = new File(TestLoggerFactory.testLogDir, "idea.log") - if (ideaLog.exists()) { - println 'deleting idea.log' - ideaLog.delete() - } else { - println 'no idea.log' - println new File(TestLoggerFactory.testLogDir).exists() - println new File(TestLoggerFactory.testLogDir).list() - } new File(PathManager.systemPath, "compile-server/server.log").delete() super.runBare() } @@ -230,7 +221,9 @@ public abstract class GroovyCompilerTest extends GroovyCompilerTestCase { def ideaLog = new File(TestLoggerFactory.testLogDir, "idea.log") if (ideaLog.exists()) { println "\n\nIdea Log:" - println ideaLog.text + def limit = 15000 + def logText = ideaLog.text + println(logText.size() < limit ? logText : logText.substring(logText.size() - limit)) } def makeLog = new File(PathManager.systemPath, "compile-server/server.log") if (makeLog.exists()) {