From: Joseph Sutton Date: Thu, 17 Aug 2023 01:29:41 +0000 (+1200) Subject: selftest: Report time at which testsuite starts X-Git-Tag: tevent-0.16.0~865 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aba7eb094b978f69a632ec6e9080d55b788c9001;p=thirdparty%2Fsamba.git 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 Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue Aug 22 00:36:52 UTC 2023 on atb-devel-224 --- diff --git a/selftest/selftest.pl b/selftest/selftest.pl index cff150c9eb7..3dbaa4f0c18 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -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();