autotest: added --experimental option

this currently enables fly.ArduPlane
This commit is contained in:
Andrew Tridgell 2011-11-13 21:20:29 +11:00
parent 395ad44dd9
commit 5ce99fd9cc
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,7 @@ parser = optparse.OptionParser("autotest")
parser.add_option("--skip", type='string', default='', help='list of steps to skip (comma separated)')
parser.add_option("--list", action='store_true', default=False, help='list the available steps')
parser.add_option("--viewerip", default=None, help='IP address to send MAVLink and fg packets to')
parser.add_option("--experimental", default=False, action='store_true', help='enable experimental tests')
opts, args = parser.parse_args()
@ -151,6 +152,9 @@ def run_step(step):
return arducopter.fly_ArduCopter()
if step == 'fly.ArduPlane':
if not opts.experimental:
print("DISABLED: use --experimental to enable fly.ArduPlane")
return True
return arduplane.fly_ArduPlane(viewerip=opts.viewerip)
if step == 'convertgpx':