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.set_streamrate(self.sitl_streamrate())
self.progress("Reboot complete") 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" ''' '''customisations could be "--uartF=sim:nmea" '''
self.contexts[-1].sitl_commandline_customised = True self.contexts[-1].sitl_commandline_customised = True
self.stop_SITL() self.stop_SITL()
self.start_SITL(model=model, self.start_SITL(model=model,
defaults_filepath=defaults_filepath, defaults_filepath=defaults_filepath,
customisations=customisations, customisations=customisations,
wipe=False) wipe=wipe)
self.wait_heartbeat(drain_mav=True) self.wait_heartbeat(drain_mav=True)
# MAVProxy only checks the streamrates once every 15 seconds. # MAVProxy only checks the streamrates once every 15 seconds.
# Encourage it: # Encourage it: