]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Report time at which testsuite starts
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 17 Aug 2023 01:29:41 +0000 (13:29 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 22 Aug 2023 00:36:52 +0000 (00:36 +0000)
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

selftest/selftest.pl

index cff150c9eb7d34eca99be45bb6e2c37c6e647258..3dbaa4f0c1804951d9050e1da400b08a2dcf748e 100755 (executable)
@@ -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();