From b6c4930b3a2576a35bff0cbc75393b0e635e9520 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 26 Aug 2022 13:03:32 +1000 Subject: [PATCH] autotest: explicltly dis/reconnect when customising commandline We *know* the connection is going away, so wecan force the reconnect rather than waiting for mavtcp's reconnect logic to kick in --- Tools/autotest/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 4d434fc427..84c0dca3ed 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -2517,11 +2517,13 @@ class AutoTest(ABC): set_streamrate_callback=None): '''customisations could be "--uartF=sim:nmea" ''' self.contexts[-1].sitl_commandline_customised = True + self.mav.close() self.stop_SITL() self.start_SITL(model=model, defaults_filepath=defaults_filepath, customisations=customisations, wipe=wipe) + self.mav.do_connect() tstart = time.time() while True: if time.time() - tstart > 30: