Fix TEST_HOST path using symlinked command.

This commit is contained in:
Rob Landley 2021-07-24 12:13:44 -05:00
parent 65488aff88
commit a125ba10bc

View File

@ -39,11 +39,11 @@ do_test()
then
C="$TESTDIR/$CMDNAME"
[ ! -e "$C" ] && echo "$CMDNAME disabled" && return
C="$(dirname $(realpath "$C"))/$CMDNAME"
else
C="$(which $CMDNAME 2>/dev/null)"
[ -z "$C" ] && printf '%s\n' "$SHOWSKIP: no $CMDNAME" && return
fi
C="$(dirname $(realpath "$C"))/$CMDNAME"
(. "$1"; cd "$TESTDIR"; touch continue)
cd "$TESTDIR"