diff options
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/output/buildfarm.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/selftest/output/buildfarm.pm b/selftest/output/buildfarm.pm index 09b84de99e..8612cfbc76 100644 --- a/selftest/output/buildfarm.pm +++ b/selftest/output/buildfarm.pm @@ -87,9 +87,16 @@ sub control_msg($$) } } -sub end_testsuite($$$$$$) +sub end_testsuite($$$$$) { - my ($self, $name, $result, $unexpected, $reason) = @_; + my ($self, $name, $result, $reason) = @_; + + my $unexpected; + if ($result eq "failure" or $result eq "fail" or $result eq "error") { + $unexpected = 1; + } else { + $unexpected = 0; + } BuildFarm::end_testsuite($name, ($self->{last_time} - $self->{START_TIME}), (not $unexpected), $self->{test_output}->{$name}, |