fix solr logging in tests

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1022632 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-10-14 18:11:16 +00:00
parent 505ab4acfe
commit 5086f404a9
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.text.NumberFormat;
import java.util.logging.LogManager;
import junit.framework.AssertionFailedError;
import junit.framework.Test;
@ -115,6 +116,9 @@ public class LuceneJUnitResultFormatter implements JUnitResultFormatter {
if (out == null) {
return; // Quick return - no output do nothing.
}
try {
LogManager.getLogManager().readConfiguration();
} catch (Exception e) {}
sb.setLength(0);
sb.append("Testsuite: ");
sb.append(suite.getName());