]> git.sur5r.net Git - i3/i3/commitdiff
tests: also get rid of smartmatch in complete-run.pl
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 24 Sep 2013 04:37:40 +0000 (06:37 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 24 Sep 2013 04:37:40 +0000 (06:37 +0200)
testcases/complete-run.pl

index 560dd4c3de0bc21f6c4126b7f152ef4b424d89fb..c6e7436929424356e945a4474cbb9f75fc427075 100755 (executable)
@@ -143,7 +143,7 @@ my $timingsjson = StartXDummy::slurp('.last_run_timings.json');
 
 # Run 000-load-deps.t first to bail out early when dependencies are missing.
 my $loadtest = "t/000-load-deps.t";
-if ($loadtest ~~ @testfiles) {
+if ((scalar grep { $_ eq $loadtest } @testfiles) > 0) {
     @testfiles = ($loadtest, grep { $_ ne $loadtest } @testfiles);
 }