ICU-4900 don't print out error summary twice

X-SVN-Rev: 18745
This commit is contained in:
Doug Felt 2005-11-02 01:07:47 +00:00
parent ca1d882dc1
commit 4f9b161359

View file

@ -538,6 +538,7 @@ public class TestFmwk extends AbstractTestLog {
public int runTests(TestParams params, String[] tests) {
int ec = 0;
StringBuffer summary = null;
try {
if (tests[0] == null) { // no args
params.init();
@ -556,8 +557,11 @@ public class TestFmwk extends AbstractTestLog {
ec += params.errorCount;
if (params.errorSummary != null && params.errorSummary.length() > 0) {
params.log.println("\nError summary:");
params.log.println(params.errorSummary.toString());
if (summary == null) {
summary = new StringBuffer();
}
summary.append("\nTest: " + tests[i]);
summary.append(params.errorSummary());
}
}
}
@ -567,6 +571,7 @@ public class TestFmwk extends AbstractTestLog {
params.log.println("encountered exception, exiting");
}
params.errorSummary = summary;
return ec;
}