Teach scripts/test.sh to skip TEST_HOST commands that aren't installed.

This commit is contained in:
Rob Landley 2020-05-13 01:28:09 -05:00
parent 8de3613e43
commit ce67bb5ac8

View File

@ -40,7 +40,7 @@ do_test()
[ ! -e "$C" ] && echo "$CMDNAME disabled" && return
else
C="$(which $CMDNAME 2>/dev/null)"
[ -z "$C" ] && "C=$CMDNAME"
[ -z "$C" ] && printf '%s\n' "$SHOWSKIP: no $CMDNAME" && return
fi
C="$(dirname $(realpath "$C"))/$CMDNAME"