complete-run: run 000-load-deps as early as possible

This commit is contained in:
Michael Stapelberg 2012-11-13 21:04:13 +01:00
parent 5fb9b8ffb8
commit 773654dbb8
1 changed files with 6 additions and 0 deletions

View File

@ -137,6 +137,12 @@ my $timingsjson = StartXDummy::slurp('.last_run_timings.json');
sort { $b->[1] <=> $a->[1] } sort { $b->[1] <=> $a->[1] }
map { [$_, $timings{$_} // 999] } @testfiles; 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}) printf("\nRough time estimate for this run: %.2f seconds\n\n", $timings{GLOBAL})
if exists($timings{GLOBAL}); if exists($timings{GLOBAL});