aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-05-11 13:23:26 -0500
committerRob Landley <rob@landley.net>2020-05-11 13:23:26 -0500
commit01864337c4190d19f21ee8df0beaf51f783c1940 (patch)
tree6aef6ef4fd71d397bdd39ac119abcfe02e61308d /scripts
parent0f6e92e1e14fe890e4b95dd954c8c2441c9f2a8c (diff)
downloadtoybox-01864337c4190d19f21ee8df0beaf51f783c1940.tar.gz
Fix "make tests". (realpath was replacing command name with "toybox".)0.8.3
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 b22f928e..bc00058f 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -42,7 +42,7 @@ do_test()
C="$(which $CMDNAME 2>/dev/null)"
[ -z "$C" ] && "C=$CMDNAME"
fi
- C="$(realpath "$C")"
+ C="$(dirname $(realpath "$C"))/$CMDNAME"
. "$1"
}