Commit 304f8a06 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Failed tests are not expected to succeed at the next attempt

parent 30c16952
......@@ -116,7 +116,13 @@ sub run {
foreach my $test (@{$self->param('tests')}) {
push @failures, $test unless $self->_run_test($test);
}
die "The following tests have failed:\n".join('', map {sprintf(" - %s\n > %s\n", $_->{description}, $_->{subst_query})} @failures) if @failures;
if (@failures) {
# Transient errors like lost access to the database, etc, tend to
# make the job die in _run_test(). If we've passed this point, the
# test geneuinely failed, and it will fail again anyway
$self->input_job->transient_error(0);
die "The following tests have failed:\n".join('', map {sprintf(" - %s\n > %s\n", $_->{description}, $_->{subst_query})} @failures);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment