adding parallel stuff

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

29
urchin
View File

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