diff --git a/Tools/autotest/sim_vehicle.sh b/Tools/autotest/sim_vehicle.sh index fb614f494c..434ccc9bc2 100755 --- a/Tools/autotest/sim_vehicle.sh +++ b/Tools/autotest/sim_vehicle.sh @@ -277,7 +277,7 @@ if [ -n "$OVERRIDE_BUILD_TARGET" ]; then fi autotest="../Tools/autotest" -[ -d "$autotest"] && { +[ -d "$autotest" ] && { autotest=$(dirname $(readlink -e $0)) } pushd $autotest/../../$VEHICLE || {