From aba7eb094b978f69a632ec6e9080d55b788c9001 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 17 Aug 2023 13:29:41 +1200 Subject: [PATCH] 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 --- selftest/selftest.pl | 1 + 1 file changed, 1 insertion(+) 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();