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. # The directory is empty.
break break
fi fi
urchin_source setup
(
urchin_source setup
set +e set +e
recurse "$requested_path" "$test" "$cycle_shell" "$TEST_SHELL" recurse "$requested_path" "$test" "$cycle_shell" "$TEST_SHELL"
exit_code=$? exit_code=$?
set -e set -e
if $exit_on_not_ok && test $exit_code -ne 0; then
urchin_source teardown 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_source teardown_dir
urchin_exit 1 urchin_exit 1
fi fi
else
urchin_source teardown fi
done done
urchin_source teardown_dir urchin_source teardown_dir
) )