include time in output

This commit is contained in:
Thomas Levine 2016-02-28 16:12:13 +00:00
parent 552873a642
commit d836a40047

13
urchin
View File

@ -133,9 +133,9 @@ recurse() {
urchin_source teardown_dir urchin_source teardown_dir
urchin_exit 1 urchin_exit 1
fi fi
else
fi fi
done done
wait
urchin_source teardown_dir urchin_source teardown_dir
) )
else else
@ -271,12 +271,12 @@ report_outcome() {
ok) ok)
# On success, print a green '✓' # On success, print a green '✓'
printf '\033[32m✓ \033[0m' printf '\033[32m✓ \033[0m'
echo "${the_shell}" echo "${the_shell} ($file_elapsed $(plural second $file_elapsed))"
;; ;;
not_ok) not_ok)
# On not_ok, print a red '✗' # On not_ok, print a red '✗'
printf '\033[31m✗ \033[0m' printf '\033[31m✗ \033[0m'
echo "${the_shell}" echo "${the_shell} ($file_elapsed $(plural second $file_elapsed))"
# Print output captured from not_ok test in red. # Print output captured from not_ok test in red.
printf '\033[31m' printf '\033[31m'
@ -288,7 +288,7 @@ report_outcome() {
if test -z "$the_shell"; then if test -z "$the_shell"; then
the_shell='(File is not executable.)' the_shell='(File is not executable.)'
fi fi
echo " $the_shell" echo " ${the_shell} ($file_elapsed $(plural second $file_elapsed))"
;; ;;
esac esac
fi fi
@ -473,6 +473,11 @@ if [ "$#" != '1' ] || [ ! -e "$1" ]; then
urchin_exit 11 urchin_exit 11
fi fi
if $exit_on_not_ok && ! $single_process; then
echo 'You must also pass -b/--series in order to use -e/--exit-on-fail.' >&2
urchin_exit 11
fi
# Run or present the Molly guard. # Run or present the Molly guard.
root="$(urchin_root "$1")" root="$(urchin_root "$1")"
if basename "$(fullpath "$root")" | if basename "$(fullpath "$root")" |