adding parallel stuff

This commit is contained in:
Thomas Levine 2016-02-28 16:05:03 +00:00
parent 241ddcd2cf
commit 552873a642

17
urchin
View File

@ -115,21 +115,26 @@ recurse() {
# The directory is empty.
break
fi
urchin_source setup
(
urchin_source setup
set +e
recurse "$requested_path" "$test" "$cycle_shell" "$TEST_SHELL"
exit_code=$?
set -e
if $exit_on_not_ok && test $exit_code -ne 0; then
urchin_source teardown
exit $exit_code
) &
if $single_process; then
wait $!
exit_code=$?
if $exit_on_not_ok && test $exit_code -ne 0; then
urchin_source teardown_dir
urchin_exit 1
fi
urchin_source teardown
else
fi
done
urchin_source teardown_dir
)