1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r26398: Fix writing the output of failed tests to st/summary.

This commit is contained in:
Jelmer Vernooij 2007-12-11 14:24:20 +01:00 committed by Stefan Metzmacher
parent 801c8c766c
commit 34b9ddddaf

View File

@ -70,6 +70,7 @@ sub end_testsuite($$$$$$)
if ($ret != $expected_ret and $self->{immediate} and not $self->{verbose}) {
$out .= $self->{test_output}->{$name};
push (@{$self->{suitesfailed}}, $name);
}
print $out;
@ -108,6 +109,13 @@ sub summary($)
if ($#{$self->{suitesfailed}} > -1) {
print SUMMARY "= Failed tests =\n";
foreach (@{$self->{suitesfailed}}) {
print SUMMARY "== $_ ==\n";
print SUMMARY $self->{test_output}->{$_}."\n\n";
}
print SUMMARY "\n";
}
if (not $self->{immediate} and not $self->{verbose}) {
@ -116,9 +124,6 @@ sub summary($)
print "FAIL: $_\n";
print $self->{test_output}->{$_};
print "\n";
print SUMMARY "= $_ =\n";
print SUMMARY $self->{test_output}->{$_}."\n\n";
}
}