Automatic commit with j

This commit is contained in:
Thomas Levine 2016-04-08 22:44:29 +00:00
parent b807f6ad70
commit f783aa8cbf

27
urchin
View File

@ -114,11 +114,12 @@ The following flags affect how Urchin processes tests.
does not contain the word "test". does not contain the word "test".
These options affect how results are formatted. Options -q, and -v These options affect how results are formatted. Options -q, and -v
have no effect when combined with --tap. -vv, -vvv, and -vvvv do have have no effect when combined with formats other than "urchin".
effect when combined with --tap. -vv, -vvv, and -vvvv do have effect when combined with formats "urchin"
or "tap".
-p, --pretty Print results in color and with fancy symbols. -p, --pretty Print results in color and with fancy symbols.
-t, --tap Format output in Test Anything Protocol (TAP) -F, --format <name> XXX
And these options affect how much is printed. And these options affect how much is printed.
@ -451,6 +452,8 @@ recurse() {
fi fi
} }
# This should not require the root variable; fix the paths before they
# get to the log file.
report_outcome() { report_outcome() {
root="${1}" root="${1}"
tap_format="${2}" tap_format="${2}"
@ -601,7 +604,7 @@ main() {
run_in_series=false run_in_series=false
force=false force=false
exit_on_not_ok=false exit_on_not_ok=false
tap_format=false format=urchin
print_in_color=false print_in_color=false
print_margins=true print_margins=true
@ -634,7 +637,7 @@ main() {
echo "${shell_for_sh_tests}" >> "${shell_list}" echo "${shell_for_sh_tests}" >> "${shell_list}"
;; ;;
-n|--disable-cycling) cycle_shell=false;; -n|--disable-cycling) cycle_shell=false;;
-t|--tap) tap_format=true;; -F|--format) shift ; format="${1}";;
-T|--timeout) -T|--timeout)
shift shift
urchin_timeout="${1}" urchin_timeout="${1}"
@ -704,12 +707,14 @@ main() {
fi fi
if $print_margins; then if $print_margins; then
if $tap_format; then if test "${format}" = tap; then
printf '# ' printf '# ' >> "${urchin_tmp}"/head
fi fi
printf 'Cycling with the following shells: ' if test "${format}" = urchin || test "${format}" = tap; then
cat "${shell_list}" | tr '\n' \ printf 'Cycling with the following shells: ' >> "${urchin_tmp}"/head
echo fi
cat "${shell_list}" | tr '\n' \ >> "${urchin_tmp}"/head
echo >> "${urchin_tmp}"/head
fi fi
if test -n "${urchin_timeout}"; then if test -n "${urchin_timeout}"; then
@ -747,7 +752,7 @@ main() {
urchin_exit 1 urchin_exit 1
fi fi
report_outcome "${root}" "${tap_format}" "${urchin_tmp}"/log "${start}" \ report_outcome "${root}" "${format}" "${urchin_tmp}"/log "${start}" \
"${finish}" "${finish}"
urchin_exit "${?}" urchin_exit "${?}"
} }