autotest: allow run without $PATH setup

This commit is contained in:
Andrew Tridgell 2015-07-09 13:06:35 +10:00
parent 01eb27908f
commit 338ae68537
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,6 @@ else
echo "Window access not found, logging to $filename" echo "Window access not found, logging to $filename"
cmd="$1" cmd="$1"
shift shift
( run_cmd.sh $cmd $* &>$filename < /dev/null ) & ( $AUTOTEST/run_cmd.sh $cmd $* &>$filename < /dev/null ) &
fi fi
exit 0 exit 0

View File

@ -285,6 +285,8 @@ pushd $autotest/../../$VEHICLE || {
usage usage
exit 1 exit 1
} }
AUTOTEST=$autotest
export AUTOTEST
VEHICLEDIR=$(pwd) VEHICLEDIR=$(pwd)
if [ $NO_REBUILD == 0 ]; then if [ $NO_REBUILD == 0 ]; then