mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
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.
This commit is contained in:
parent
0aa9e03f55
commit
d8fe061f4c
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue