1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

selftest: Report time at which testsuite starts

With no call to report_time() preceding it,
PlainFormatter.start_testsuite() would always claim that no time had
elapsed prior to the first testsuite starting to run. This gave a
misleading impression of the time spent running the first testsuite. Now
the time will be consistent with that reported for subsequent
testsuites, and will properly include any time that test environments
took to start up.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 22 00:36:52 UTC 2023 on atb-devel-224
This commit is contained in:
Joseph Sutton 2023-08-17 13:29:41 +12:00 committed by Andrew Bartlett
parent fc41a35a9b
commit aba7eb094b

View File

@ -126,6 +126,7 @@ sub run_testsuite($$$$$)
my ($envname, $name, $cmd, $i, $totalsuites) = @_;
my $pcap_file = $target->setup_pcap($name);
Subunit::report_time();
Subunit::start_testsuite($name);
Subunit::progress_push();
Subunit::report_time();