diff options
author | Rob Landley <rob@landley.net> | 2020-05-13 01:28:09 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-05-13 01:28:09 -0500 |
commit | ce67bb5ac850f188e1325d59530d2d91dfdcea68 (patch) | |
tree | 939bae309b87f8ee0e1505fd2aaf973251b99c45 | |
parent | 8de3613e437379d8f878e2adeaa745585a71d6a0 (diff) | |
download | toybox-ce67bb5ac850f188e1325d59530d2d91dfdcea68.tar.gz |
Teach scripts/test.sh to skip TEST_HOST commands that aren't installed.
-rwxr-xr-x | scripts/test.sh | 2 |
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" |