remove redundant confusing output
This commit is contained in:
parent
65367f5efa
commit
007e8f1d5c
|
@ -76,6 +76,8 @@ import java.util.TimeZone;
|
||||||
@LuceneTestCase.SuppressSysoutChecks(bugUrl = "we log a lot on purpose")
|
@LuceneTestCase.SuppressSysoutChecks(bugUrl = "we log a lot on purpose")
|
||||||
@Ignore
|
@Ignore
|
||||||
@SuppressCodecs({"SimpleText", "Memory", "CheapBastard", "Direct"}) // slow ones
|
@SuppressCodecs({"SimpleText", "Memory", "CheapBastard", "Direct"}) // slow ones
|
||||||
|
// LUCENE-6432
|
||||||
|
//@LuceneTestCase.SuppressReproduceLine
|
||||||
public abstract class ESTestCase extends LuceneTestCase {
|
public abstract class ESTestCase extends LuceneTestCase {
|
||||||
static {
|
static {
|
||||||
SecurityHack.ensureInitialized();
|
SecurityHack.ensureInitialized();
|
||||||
|
|
|
@ -50,12 +50,12 @@ public class ReproduceInfoPrinter extends RunListener {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void testStarted(Description description) throws Exception {
|
public void testStarted(Description description) throws Exception {
|
||||||
logger.info("Test {} started", description.getDisplayName());
|
logger.trace("Test {} started", description.getDisplayName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void testFinished(Description description) throws Exception {
|
public void testFinished(Description description) throws Exception {
|
||||||
logger.info("Test {} finished", description.getDisplayName());
|
logger.trace("Test {} finished", description.getDisplayName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -65,10 +65,8 @@ public class ReproduceInfoPrinter extends RunListener {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final Description d = failure.getDescription();
|
|
||||||
final StringBuilder b = new StringBuilder();
|
final StringBuilder b = new StringBuilder();
|
||||||
b.append("FAILURE : ").append(d.getDisplayName()).append("\n");
|
b.append("REPRODUCE WITH: mvn test -Pdev");
|
||||||
b.append("REPRODUCE WITH : mvn test -Pdev");
|
|
||||||
MavenMessageBuilder mavenMessageBuilder = new MavenMessageBuilder(b);
|
MavenMessageBuilder mavenMessageBuilder = new MavenMessageBuilder(b);
|
||||||
mavenMessageBuilder.appendAllOpts(failure.getDescription());
|
mavenMessageBuilder.appendAllOpts(failure.getDescription());
|
||||||
|
|
||||||
|
@ -77,13 +75,7 @@ public class ReproduceInfoPrinter extends RunListener {
|
||||||
mavenMessageBuilder.appendRestTestsProperties();
|
mavenMessageBuilder.appendRestTestsProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
b.append("\n");
|
System.err.println(b.toString());
|
||||||
b.append("Throwable:\n");
|
|
||||||
if (failure.getException() != null) {
|
|
||||||
traces().formatThrowable(b, failure.getException());
|
|
||||||
}
|
|
||||||
|
|
||||||
logger.error(b.toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected TraceFormatting traces() {
|
protected TraceFormatting traces() {
|
||||||
|
|
Loading…
Reference in New Issue