aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-12-02 16:53:03 -0600
committerRob Landley <rob@landley.net>2018-12-02 16:53:03 -0600
commitb742998a2671818ceb5295d1a3f2f2c062a39028 (patch)
treea222febb10fca4df789d31b9536a257ae619b527 /scripts
parent01844db4fb92aa7ae6eb12b160f1978235a449d5 (diff)
downloadtoybox-b742998a2671818ceb5295d1a3f2f2c062a39028.tar.gz
Teach testcmd to say short name rather than full path.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh4
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.