removed superficial error message.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4950 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-09-27 17:47:16 +00:00
1 parent c59b2f5b56
commit f46fe2d5d4
1 file changed
+5
@@ -72,6 +72,11 @@ public class JUnitResultArchiver extends Publisher implements Serializable, Matr
if(result.getPassCount()==0 && result.getFailCount()==0)
new AbortException("None of the test reports contained any result");
} catch (AbortException e) {
if(build.getResult()==Result.FAILURE)
// most likely a build failed before it gets to the test phase.
// don't report confusing error message.
return true;
listener.getLogger().println(e.getMessage());
build.setResult(Result.FAILURE);
return true;