From: Michael Stapelberg Date: Tue, 13 Nov 2012 20:04:13 +0000 (+0100) Subject: complete-run: run 000-load-deps as early as possible X-Git-Tag: 4.4~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=773654dbb85f420c8292d6455acfb9dd4309f21f;p=i3%2Fi3 complete-run: run 000-load-deps as early as possible --- diff --git a/testcases/complete-run.pl b/testcases/complete-run.pl index d73bb332..b8121802 100755 --- a/testcases/complete-run.pl +++ b/testcases/complete-run.pl @@ -137,6 +137,12 @@ my $timingsjson = StartXDummy::slurp('.last_run_timings.json'); sort { $b->[1] <=> $a->[1] } map { [$_, $timings{$_} // 999] } @testfiles; +# Run 000-load-deps.t first to bail out early when dependencies are missing. +my $loadtest = "t/000-load-deps.t"; +if ($loadtest ~~ @testfiles) { + @testfiles = ($loadtest, grep { $_ ne $loadtest } @testfiles); +} + printf("\nRough time estimate for this run: %.2f seconds\n\n", $timings{GLOBAL}) if exists($timings{GLOBAL});