]> git.sur5r.net Git - i3/i3/commitdiff
complete-run: run 000-load-deps as early as possible
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 13 Nov 2012 20:04:13 +0000 (21:04 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 13 Nov 2012 20:04:13 +0000 (21:04 +0100)
testcases/complete-run.pl

index d73bb3327d242344f641930d8e34534d5ec725f5..b812180270aaa75866fa7ca3cdb930218cde0cc8 100755 (executable)
@@ -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});