aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-05-13 01:28:09 -0500
committerRob Landley <rob@landley.net>2020-05-13 01:28:09 -0500
commitce67bb5ac850f188e1325d59530d2d91dfdcea68 (patch)
tree939bae309b87f8ee0e1505fd2aaf973251b99c45 /scripts
parent8de3613e437379d8f878e2adeaa745585a71d6a0 (diff)
downloadtoybox-ce67bb5ac850f188e1325d59530d2d91dfdcea68.tar.gz
Teach scripts/test.sh to skip TEST_HOST commands that aren't installed.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index bc00058f..ede105ea 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -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"