Unverified Commit 65a411b0 authored by boklm's avatar boklm
Browse files

Replace fatal boolean with fail_type fatal value

parent b30e4329
......@@ -146,7 +146,7 @@ our @tests = (
name => 'tor_bootstrap',
type => 'tor_bootstrap',
descr => 'Check that we can bootstrap tor',
fatal => 1,
fail_type => 'fatal',
always => 1,
use_default_config => 1,
no_kill => 1,
......
......@@ -37,7 +37,7 @@ sub run_tests {
$test->{post}->($tbbinfos, $test) if $test->{post};
$test->{finish_time} = time;
$test->{run_time} = $test->{finish_time} - $test->{start_time};
if ($test->{fatal} && is_test_error($test)) {
if ($test->{fail_type} eq 'fatal' && is_test_error($test)) {
last;
}
}
......
......@@ -19,9 +19,9 @@ type::
descr::
A short description.
fatal::
If you set this to 1, when this test fail the following tests
are not run.
fail_type::
The default is 'error'. If you set this to 'fatal', when this
test fails the following tests are not run.
pre::
A reference to a perl subroutine that will be run before the
......
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