mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4900 don't print out error summary twice
X-SVN-Rev: 18745
This commit is contained in:
parent
ca1d882dc1
commit
4f9b161359
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue