diff options
author | Rob Landley <rob@landley.net> | 2018-12-02 16:53:03 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-12-02 16:53:03 -0600 |
commit | b742998a2671818ceb5295d1a3f2f2c062a39028 (patch) | |
tree | a222febb10fca4df789d31b9536a257ae619b527 /scripts | |
parent | 01844db4fb92aa7ae6eb12b160f1978235a449d5 (diff) | |
download | toybox-b742998a2671818ceb5295d1a3f2f2c062a39028.tar.gz |
Teach testcmd to say short name rather than full path.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh index 490750cc..f7ad4a1e 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -129,7 +129,9 @@ testcmd() { wrong_args "$@" - testing "$1" "$C $2" "$3" "$4" "$5" + X="$1" + [ -z "$X" ] && X="$CMDNAME $2" + testing "$X" "$C $2" "$3" "$4" "$5" } # Recursively grab an executable and all the libraries needed to run it. |