Browse Source

autotest: fix --map option

zr-v5.1
Peter Barker 4 years ago committed by Peter Barker
parent
commit
ba972b6b46
  1. 9
      Tools/autotest/common.py

9
Tools/autotest/common.py

@ -2201,14 +2201,10 @@ class AutoTest(ABC): @@ -2201,14 +2201,10 @@ class AutoTest(ABC):
def close(self):
"""Tidy up after running all tests."""
if self.use_map:
self.mavproxy.send("module unload map\n")
self.mavproxy.expect("Unloaded module map")
if self.mav is not None:
self.mav.close()
self.mav = None
util.pexpect_close(self.mavproxy)
self.stop_SITL()
valgrind_log = util.valgrind_log_filepath(binary=self.binary,
@ -5705,6 +5701,10 @@ Also, ignores heartbeats not from our target system''' @@ -5705,6 +5701,10 @@ Also, ignores heartbeats not from our target system'''
if self._mavproxy is not None:
self.progress("Stopping auto-started mavproxy")
if self.use_map:
self.mavproxy.send("module unload map\n")
self.mavproxy.expect("Unloaded module map")
self.expect_list_remove(self._mavproxy)
util.pexpect_close(self._mavproxy)
self._mavproxy = None
@ -5846,7 +5846,6 @@ Also, ignores heartbeats not from our target system''' @@ -5846,7 +5846,6 @@ Also, ignores heartbeats not from our target system'''
return self.sitl.isalive()
def autostart_mavproxy(self):
return False
return self.use_map
def init(self):

Loading…
Cancel
Save