From d8fe061f4cff90d15e4d8ff4ba2af91d9b932764 Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Wed, 24 Jun 2020 00:51:40 +0200 Subject: [PATCH] shtests: count nonexistent tests as errors (re: c2eabc57) When a nonexistent test script was given as an argument to shtests, this was not counted as an error and shtests exited successfully (with status 0). src/cmd/ksh93/tests/shtests: - Increase total error count if a test script is not found. --- src/cmd/ksh93/tests/shtests | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/ksh93/tests/shtests b/src/cmd/ksh93/tests/shtests index 05440c379..4c203d4a8 100755 --- a/src/cmd/ksh93/tests/shtests +++ b/src/cmd/ksh93/tests/shtests @@ -305,6 +305,7 @@ for i in ${*-*.sh} do [[ $i == *.sh ]] || i+='.sh' if [[ ! -r $i ]] then echo $0: $i: not found >&2 + (( ++total_e )) continue fi t=$(grep -c err_exit $i)