1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r22384: print out the total selftest runtime

and the time for each test

we hit the max runtime of smbd on some hosts

metze
This commit is contained in:
Stefan Metzmacher 2007-04-19 17:50:57 +00:00 committed by Gerald (Jerry) Carter
parent 8b8152b490
commit 7b173c3421

View File

@ -191,6 +191,7 @@ sub buildfarm_start_msg($)
$out .= "Running test $state->{NAME} (level 0 stdout)\n";
$out .= "--==--==--==--==--==--==--==--==--==--==--\n";
$out .= scalar(localtime())."\n";
$out .= "SELFTEST RUNTIME: " . ($state->{START} - $start) . "s";
$out .= "NAME: $state->{NAME}\n";
$out .= "CMD: $state->{CMD}\n";
@ -211,6 +212,8 @@ sub buildfarm_end_msg($$$)
my ($state, $expected_ret, $ret) = @_;
my $out = "";
$out .= "TEST RUNTIME: " . (time() - $state->{START}) . "s";
if ($ret == $expected_ret) {
$out .= "ALL OK\n";
} else {