autotest: Add wipe as argument.

This commit is contained in:
Samuel Tabor 2020-07-04 18:56:36 +01:00 committed by Peter Barker
parent 90acff647c
commit bde9ce10e3
1 changed files with 2 additions and 2 deletions

View File

@ -1414,14 +1414,14 @@ class AutoTest(ABC):
self.set_streamrate(self.sitl_streamrate())
self.progress("Reboot complete")
def customise_SITL_commandline(self, customisations, model=None, defaults_filepath=None):
def customise_SITL_commandline(self, customisations, model=None, defaults_filepath=None, wipe=False):
'''customisations could be "--uartF=sim:nmea" '''
self.contexts[-1].sitl_commandline_customised = True
self.stop_SITL()
self.start_SITL(model=model,
defaults_filepath=defaults_filepath,
customisations=customisations,
wipe=False)
wipe=wipe)
self.wait_heartbeat(drain_mav=True)
# MAVProxy only checks the streamrates once every 15 seconds.
# Encourage it: