]> git.sur5r.net Git - i3/i3/commitdiff
complete-run: handle bailouts
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 12 Aug 2012 11:46:54 +0000 (13:46 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 12 Aug 2012 11:46:54 +0000 (13:46 +0200)
testcases/complete-run.pl

index 88fece4bb859e9ed7f021b9678d72f2a3d4bb6fa..4bdf5c78c04cfdf22c5b335c565efa2bf35fa3f2 100755 (executable)
@@ -265,9 +265,16 @@ sub take_job {
 
             for (1 .. $lines) {
                 my $result = $parser->next;
-                if (defined($result) and $result->is_test) {
+                next unless defined($result);
+                if ($result->is_test) {
                     $tests_completed++;
                     status($display, "$test: [$tests_completed/??] ");
+                } elsif ($result->is_bailout) {
+                    Log status($display, "$test: BAILOUT");
+                    status_completed(scalar @done);
+                    say "";
+                    say "test $test bailed out: " . $result->explanation;
+                    exit 1;
                 }
             }