提交 f46fe2d5 编写于 作者: K kohsuke

removed superficial error message.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4950 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c59b2f5b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册