diff --git a/git-test b/git-test index 0d0169a..82be4e9 100755 --- a/git-test +++ b/git-test @@ -154,6 +154,7 @@ decide_refs() { if [ -z "$args" ] ; then gettext "Cowardly refusing to test the entire history. (If that's what you really want, you must specify at least HEAD)" >& $ERR + echo >& $ERR rc=5 else echo "$branch $args" | tr " " "$NL" | sort | uniq | tr "$NL" " " @@ -335,6 +336,7 @@ parse_redo() { redo=both else gettext "Unknown redo mode requested" + echo rc=1 exit $rc fi @@ -434,6 +436,7 @@ if [ $action = clear ] ; then if test 1 -gt "$count" ; then gettext "List of commits to clear is empty" 1>&2 + echo 1>&2 exit fi @@ -476,6 +479,7 @@ count="$(echo "${commits[@]}" | wc -w)" if test 1 -gt "$count" ; then gettext 'List of commits to test is empty' 1>&2 + echo 1>&2 exit elif test -z "$GIT_QUIET" ; then printf "$(eval_gettext "%s will test %d commits\n")" "${refs[*]}" "$count" diff --git a/regress.sh b/regress.sh deleted file mode 100755 index 5067043..0000000 --- a/regress.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -x - -rev=$(git rev-parse --short HEAD) -cp test.sh tests_of_${rev}.sh -cp all_shells.sh all_shells_${rev}.sh -export GIT_TEST_VERIFY="./all_shells_${rev}.sh tests_of_${rev}.sh -v" -./git-test -v -o reports "$@" diff --git a/test.sh b/test.sh old mode 100644 new mode 100755