Verified Commit 7775ed32 authored by boklm's avatar boklm
Browse files

Bug 40018: Add support for test_post option

If the option test_post is defined and pointing to a subroutine, then
this subroutine will be run after each test.

We will be using this option to run an rsync after each Tor Browser build.
parent 3afd1885
......@@ -81,6 +81,7 @@ sub run_tests {
}
$test->{finish_time} = time;
$test->{run_time} = $test->{finish_time} - $test->{start_time};
$options->{test_post}->($tbbinfos, $test) if ref $options->{test_post} eq 'CODE';
if ($test->{fail_type} eq 'fatal' && is_test_error($test)) {
last;
}
......
Supports Markdown
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