aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index 01f9ea34..1e357173 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -30,7 +30,12 @@ do_test()
{
CMDNAME="${1##*/}"
CMDNAME="${CMDNAME%.test}"
- [ -z "$2" ] && C="$(readlink -f ../$CMDNAME)" || C="$(which $CMDNAME)"
+ if [ -z "$TEST_HOST" ]
+ then
+ [ -z "$2" ] && C="$(readlink -f ../$CMDNAME)" || C="$(which $CMDNAME)"
+ else
+ C="$CMDNAME"
+ fi
if [ ! -z "$C" ]
then
. "$1"