tests: fix handling of $NMTST_LIBTOOL in "tools/run-nm-test.sh" script

(cherry picked from commit 0bd8160029)
This commit is contained in:
Thomas Haller 2020-08-13 11:27:55 +02:00
parent df626ef80b
commit 20cc1385dd
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -96,12 +96,12 @@ else
NMTST_USE_VALGRIND=0
fi
if [ -n "${NMTST_LIBTOOL-:x}" ]; then
NMTST_LIBTOOL=(sh "$SCRIPT_PATH/../libtool" --mode=execute)
elif [ -n "${NMTST_LIBTOOL-x}" ]; then
if [ -z "${NMTST_LIBTOOL+x}" ]; then
NMTST_LIBTOOL=(sh "$SCRIPT_PATH/../libtool" "--mode=execute")
elif [ -z "$NMTST_LIBTOOL" ]; then
NMTST_LIBTOOL=()
else
NMTST_LIBTOOL=($NMTST_LIBTOOL --mode=execute)
NMTST_LIBTOOL=("$NMTST_LIBTOOL" "--mode=execute")
fi
unset TEST
while test $# -gt 0; do