Unverified Commit 723682ff authored by boklm's avatar boklm
Browse files

Only diff time for tests which have been run

parent b0bfc9fb
......@@ -111,7 +111,9 @@ sub diff_results {
my $r2t = tests_by_name($r2->{tests});
foreach my $test (keys %$r2t) {
my ($t1, $t2) = ($r1t->{$test}, $r2t->{$test});
$res{tests_time}->{$test} = $t2->{run_time} - $t1->{run_time};
if (defined $t2->{run_time} && defined $t1->{run_time}) {
$res{tests_time}->{$test} = $t2->{run_time} - $t1->{run_time};
}
next unless defined $t1->{results};
next unless defined $t2->{results};
if (!$t2->{results}{success} && $t1->{results}{success}) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment