Browse Source

autotest: prevent duplication locations

master
Andrew Tridgell 9 years ago
parent
commit
9672b525f5
  1. 2
      Tools/autotest/sim_vehicle.sh

2
Tools/autotest/sim_vehicle.sh

@ -342,7 +342,7 @@ popd @@ -342,7 +342,7 @@ popd
# get the location information
if [ -z $CUSTOM_LOCATION ]; then
SIMHOME=$(cat $autotest/locations.txt | grep -i "^$LOCATION=" | cut -d= -f2)
SIMHOME=$(cat $autotest/locations.txt | grep -i "^$LOCATION=" | head -1 | cut -d= -f2)
else
SIMHOME=$CUSTOM_LOCATION
LOCATION="Custom_Location"

Loading…
Cancel
Save