autotest: changed -A to be used for arbitrary command line options

This commit is contained in:
Andrew Tridgell 2015-11-03 09:53:47 +11:00
parent d5d1bfae8c
commit ad9d50a457

View File

@ -22,7 +22,7 @@ WIPE_EEPROM=0
REVERSE_THROTTLE=0 REVERSE_THROTTLE=0
NO_REBUILD=0 NO_REBUILD=0
START_HIL=0 START_HIL=0
TRACKER_ARGS="" EXTRA_ARGS=""
EXTERNAL_SIM=0 EXTERNAL_SIM=0
MODEL="" MODEL=""
BREAKPOINT="" BREAKPOINT=""
@ -42,7 +42,7 @@ Options:
-D build with debugging -D build with debugging
-B add a breakpoint at given location in debugger -B add a breakpoint at given location in debugger
-T start an antenna tracker instance -T start an antenna tracker instance
-A pass arguments to antenna tracker -A pass arguments to SITL instance
-t set antenna tracker start location -t set antenna tracker start location
-L select start location from Tools/autotest/locations.txt -L select start location from Tools/autotest/locations.txt
-l set the custom start location from -L -l set the custom start location from -L
@ -97,7 +97,7 @@ while getopts ":I:VgGcj:TA:t:L:l:v:hwf:RNHeMS:DB:b:" opt; do
START_ANTENNA_TRACKER=1 START_ANTENNA_TRACKER=1
;; ;;
A) A)
TRACKER_ARGS="$OPTARG" EXTRA_ARGS="$OPTARG"
;; ;;
R) R)
REVERSE_THROTTLE=1 REVERSE_THROTTLE=1
@ -375,7 +375,7 @@ if [ $WIPE_EEPROM == 1 ]; then
cmd="$cmd -w" cmd="$cmd -w"
fi fi
cmd="$cmd --model $MODEL --speedup=$SPEEDUP" cmd="$cmd --model $MODEL --speedup=$SPEEDUP $EXTRA_ARGS"
case $VEHICLE in case $VEHICLE in
ArduPlane) ArduPlane)