From 31bbdf11c8832982c19e7a9ac57d1b4382670847 Mon Sep 17 00:00:00 2001 From: Sergey Kvachonok Date: Thu, 8 Apr 2021 13:47:48 +0300 Subject: [PATCH 1/2] Add newlines to all error messages gettext works like 'echo -n'. --- git-test | 4 ++++ 1 file changed, 4 insertions(+) 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" From b516e2d43392161ab53ac980270e6713d11f998c Mon Sep 17 00:00:00 2001 From: Sergey Kvachonok Date: Thu, 8 Apr 2021 14:06:32 +0300 Subject: [PATCH 2/2] Remove regress.sh and +x test.sh regress.sh was broken by 04adaa20ec137fc9fd58d8337bbe366511430805 --- regress.sh | 7 ------- test.sh | 0 2 files changed, 7 deletions(-) delete mode 100755 regress.sh mode change 100644 => 100755 test.sh 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