autotest: fixed quadplane test with new valgrind option

This commit is contained in:
Andrew Tridgell 2016-04-22 10:50:51 +10:00
parent 180a7905e5
commit 05e9f360b2

View File

@ -40,7 +40,7 @@ def fly_mission(mavproxy, mav, filename, fence, height_accuracy=-1):
return True
def fly_QuadPlane(viewerip=None, map=False):
def fly_QuadPlane(viewerip=None, map=False, valgrind=False):
'''fly QuadPlane in SIL
you can pass viewerip as an IP address to optionally send fg and
@ -55,7 +55,7 @@ def fly_QuadPlane(viewerip=None, map=False):
options += ' --map'
sil = util.start_SIL('ArduPlane', model='quadplane', wipe=True, home=HOME_LOCATION, speedup=10,
defaults_file=os.path.join(testdir, 'quadplane.parm'))
defaults_file=os.path.join(testdir, 'quadplane.parm'), valgrind=valgrind)
mavproxy = util.start_MAVProxy_SIL('QuadPlane', options=options)
mavproxy.expect('Telemetry log: (\S+)')
logfile = mavproxy.match.group(1)