autotest: prevent duplication locations

This commit is contained in:
Andrew Tridgell 2015-12-27 16:55:24 +11:00
parent f3ee7a9a85
commit 9672b525f5
1 changed files with 1 additions and 1 deletions

View File

@ -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"