Skip to content

Commit

Permalink
Fix JENKINS-11858
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Nov 25, 2011
1 parent b26465a commit e74169f
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -351,11 +351,13 @@ private Result processResultThreshold(XUnitLog log,
TestResultAction testResultAction,
TestResultAction previousTestResultAction) {

for (XUnitThreshold threshold : thresholds) {
log.infoConsoleLogger(String.format("Check '%s' threshold.", threshold.getDescriptor().getDisplayName()));
Result result = threshold.getResultThreshold(log, build, testResultAction, previousTestResultAction);
if (result.isWorseThan(Result.SUCCESS)) {
return result;
if (thresholds != null) {
for (XUnitThreshold threshold : thresholds) {
log.infoConsoleLogger(String.format("Check '%s' threshold.", threshold.getDescriptor().getDisplayName()));
Result result = threshold.getResultThreshold(log, build, testResultAction, previousTestResultAction);
if (result.isWorseThan(Result.SUCCESS)) {
return result;
}
}
}

Expand Down

0 comments on commit e74169f

Please sign in to comment.