From 338ae685379270a763de832db16e98ade5fcb189 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 9 Jul 2015 13:06:35 +1000 Subject: [PATCH] autotest: allow run without $PATH setup --- Tools/autotest/run_in_terminal_window.sh | 2 +- Tools/autotest/sim_vehicle.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/run_in_terminal_window.sh b/Tools/autotest/run_in_terminal_window.sh index dd5f93a0e6..dc7dc30ed3 100755 --- a/Tools/autotest/run_in_terminal_window.sh +++ b/Tools/autotest/run_in_terminal_window.sh @@ -21,6 +21,6 @@ else echo "Window access not found, logging to $filename" cmd="$1" shift - ( run_cmd.sh $cmd $* &>$filename < /dev/null ) & + ( $AUTOTEST/run_cmd.sh $cmd $* &>$filename < /dev/null ) & fi exit 0 diff --git a/Tools/autotest/sim_vehicle.sh b/Tools/autotest/sim_vehicle.sh index 434ccc9bc2..f6fd9bf7a9 100755 --- a/Tools/autotest/sim_vehicle.sh +++ b/Tools/autotest/sim_vehicle.sh @@ -285,6 +285,8 @@ pushd $autotest/../../$VEHICLE || { usage exit 1 } +AUTOTEST=$autotest +export AUTOTEST VEHICLEDIR=$(pwd) if [ $NO_REBUILD == 0 ]; then