Allow inverted test names in "stdlib/runtests.sh"

This commit is contained in:
rocky 2020-02-15 12:00:38 -05:00
parent 76085a3040
commit 81899a82c3

View File

@ -168,9 +168,12 @@ fi
typeset -i ALL_FILES_STARTTIME=$(date +%s)
typeset -i skipped=0
NOT_INVERTED_TESTS=${NOT_INVERTED_TESTS:-1}
for file in $files; do
# AIX bash doesn't grok [[ -v SKIP... ]]
if [[ ${SKIP_TESTS[$file]} == 1 ]] ; then
[[ -z ${SKIP_TESTS[$file]} ]] && SKIP_TESTS[$file]=0
if [[ ${SKIP_TESTS[$file]} == ${NOT_INVERTED_TESTS} ]] ; then
((skipped++))
continue
fi