diff --git a/lucene/common-build.xml b/lucene/common-build.xml index ead0cda2bec..0dd70d46597 100644 --- a/lucene/common-build.xml +++ b/lucene/common-build.xml @@ -1145,9 +1145,18 @@ # module: ${ant.project.name} ${junit4.stats.nonIgnored} + + + + + + + + + - 5 slowest tests: + 5 slowest tests: @@ -1334,6 +1343,8 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites - task.log('Beast round: ' + i); - antcall.execute(); + task.log('Beast round: ' + i, Project.MSG_INFO); + try { + // disable verbose build logging: + project.buildListeners.each { listener -> + if (listener instanceof BuildLogger) { + listener.messageOutputLevel = Project.MSG_WARN; + } + }; + + antcall.execute(); + + } catch (BuildException be) { + def logFile = new File(properties["junit.output.dir"], "tests-failures.txt"); + if (logFile.exists()) { + logFile.eachLine("UTF-8", { line -> + task.log(line, Project.MSG_ERR); + }); + } + throw be; + } finally { + // restore build logging (unfortunately there is no way to get the original logging level (write-only property): + project.buildListeners.each { listener -> + if (listener instanceof BuildLogger) { + listener.messageOutputLevel = Project.MSG_INFO; + } + }; + } }; - task.log('Beasting finished.'); + task.log('Beasting finished.', Project.MSG_INFO); ]]> @@ -1366,7 +1405,7 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites statsFile.delete(); if (total == 0) { - throw new BuildException("Not even a single test was executed (a typo in the filter pattern maybe)?"); + throw new BuildException("Not even a single test was executed (a typo in the filter pattern maybe?)."); } // Interesting but let's keep the build output quiet.