complete-run: handle bailouts

This commit is contained in:
Michael Stapelberg 2012-08-12 13:46:54 +02:00
parent 884627ef20
commit b01d45e027
1 changed files with 8 additions and 1 deletions

View File

@ -265,9 +265,16 @@ sub take_job {
for (1 .. $lines) { for (1 .. $lines) {
my $result = $parser->next; my $result = $parser->next;
if (defined($result) and $result->is_test) { next unless defined($result);
if ($result->is_test) {
$tests_completed++; $tests_completed++;
status($display, "$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;
} }
} }