From: Michael Stapelberg Date: Sun, 12 Aug 2012 11:46:54 +0000 (+0200) Subject: complete-run: handle bailouts X-Git-Tag: 4.3~108 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b01d45e027c386d216447d3e4bb5a58a94e96b3a;p=i3%2Fi3 complete-run: handle bailouts --- diff --git a/testcases/complete-run.pl b/testcases/complete-run.pl index 88fece4b..4bdf5c78 100755 --- a/testcases/complete-run.pl +++ b/testcases/complete-run.pl @@ -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; } }