提交 97c71679 编写于 作者: K kohsuke

take the master/slave clock difference into account when parsing additional test reports.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34830 71c3de6d-444a-0410-be80-ed276b4c234a
上级 570e2719
......@@ -101,11 +101,8 @@ public class SurefireArchiver extends MavenReporter {
// no test in this module
return true;
if(result==null) {
long t = System.currentTimeMillis() - build.getMilliSecsSinceBuildStart();
result = new TestResult(t - 1000/*error margin*/, ds, true);
} else
result.parse(build.getTimestamp().getTimeInMillis() - 1000/*error margin*/, ds);
if(result==null) result = new TestResult();
result.parse(System.currentTimeMillis() - build.getMilliSecsSinceBuildStart(), ds);
int failCount = build.execute(new BuildCallable<Integer, IOException>() {
public Integer call(MavenBuild build) throws IOException, InterruptedException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册