From 07bbc1f6128060c0305b7b6e49309fc0691c9490 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 4 Jul 2022 04:34:58 -0500 Subject: [PATCH] Fix "VERBOSE=all make tests" failure reporting. Moving the tests into a subshell (commit e00b4c26553b) broke it and commit de474ba03950 wasn't a complete fix. --- scripts/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index da22f661..7e80ccbf 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -45,9 +45,9 @@ do_test() [ -z "$C" ] && printf '%s\n' "$SHOWSKIP: no $CMDNAME" && return fi - (. "$1"; cd "$TESTDIR"; touch continue) + (. "$1"; cd "$TESTDIR"; echo "$FAILCOUNT" > continue) cd "$TESTDIR" - [ -e continue ] || exit 1 + [ -e continue ] && FAILCOUNT=$(($(cat continue)+$FAILCOUNT)) || exit 1 } if [ $# -ne 0 ] -- 2.39.2