mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r25465: improve plain output...
metze (This used to be commit 8deb2f068c7574618467859d9335fbd1ca6e49a1)
This commit is contained in:
parent
f069623ace
commit
00d2a19554
@ -81,16 +81,21 @@ sub start_test($$)
|
||||
sub end_test($$$$$$)
|
||||
{
|
||||
my ($self, $state, $testname, $result, $unexpected, $reason) = @_;
|
||||
my $append = "";
|
||||
|
||||
if ($unexpected and $self->{immediate} and not $self->{verbose}) {
|
||||
if ($reason) {
|
||||
print "$testname: $result [ $reason ]\n";
|
||||
} else {
|
||||
print "$testname: $result\n";
|
||||
}
|
||||
print $self->{test_output}->{$state->{NAME}}."\n";
|
||||
unless ($unexpected) {
|
||||
$self->{test_output}->{$state->{NAME}} = "";
|
||||
return;
|
||||
}
|
||||
|
||||
$append = "UNEXPECTED($result): $testname\n";
|
||||
|
||||
$self->{test_output}->{$state->{NAME}} .= $append;
|
||||
|
||||
if ($self->{immediate} and not $self->{verbose}) {
|
||||
print $self->{test_output}->{$state->{NAME}};
|
||||
$self->{test_output}->{$state->{NAME}} = "";
|
||||
}
|
||||
$self->{test_output}->{$state->{NAME}} = "";
|
||||
}
|
||||
|
||||
sub summary($)
|
||||
|
Loading…
x
Reference in New Issue
Block a user