You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2010/10/14 20:11:16 UTC

svn commit: r1022632 - /lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.java

Author: rmuir
Date: Thu Oct 14 18:11:16 2010
New Revision: 1022632

URL: http://svn.apache.org/viewvc?rev=1022632&view=rev
Log:
fix solr logging in tests

Modified:
    lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.java

Modified: lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.java?rev=1022632&r1=1022631&r2=1022632&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.java (original)
+++ lucene/dev/trunk/lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.java Thu Oct 14 18:11:16 2010
@@ -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 
     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());