summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/selftest/output/buildfarm.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/selftest/output/buildfarm.pm b/source4/selftest/output/buildfarm.pm
index a9077c3372..efb1e3ef5b 100644
--- a/source4/selftest/output/buildfarm.pm
+++ b/source4/selftest/output/buildfarm.pm
@@ -59,7 +59,7 @@ sub end_testsuite($$$$$)
if ($ret == $expected_ret) {
$out .= "ALL OK\n";
} else {
- $out .= "ERROR: $ret";
+ $out .= "ERROR: $ret\n";
$out .= $self->{test_output}->{$state->{NAME}};
}
@@ -85,7 +85,11 @@ sub start_test($$$)
sub end_test($$$$$$)
{
- my ($self, $state, $testname, $result, $expected, $reason) = @_;
+ my ($self, $state, $testname, $result, $unexpected, $reason) = @_;
+
+ return unless ($unexpected);
+
+ $self->{test_output}->{$state->{NAME}} .= "UNEXPECTED($result): $testname\n";
}
sub summary($)