Tools: autotest: more coverage out of the dataflash-over-mavlink tests

This commit is contained in:
Peter Barker 2019-09-18 21:00:14 +10:00 committed by Andrew Tridgell
parent bd713e0c87
commit 79355ba845

View File

@ -2440,7 +2440,7 @@ class AutoTest(ABC):
self.context_push() self.context_push()
ex = None ex = None
try: try:
self.set_parameter("LOG_BACKEND_TYPE", 3) self.set_parameter("LOG_BACKEND_TYPE", 2)
self.reboot_sitl() self.reboot_sitl()
self.wait_ready_to_arm() self.wait_ready_to_arm()
self.mavproxy.send('arm throttle\n') self.mavproxy.send('arm throttle\n')
@ -2452,6 +2452,16 @@ class AutoTest(ABC):
self.delay_sim_time(1) self.delay_sim_time(1)
self.drain_mav() # hopefully draining COMMAND_ACK from that failed arm self.drain_mav() # hopefully draining COMMAND_ACK from that failed arm
self.arm_vehicle() self.arm_vehicle()
tstart = self.get_sim_time()
last_status = 0
while True:
now = self.get_sim_time()
if now - tstart > 60:
break
if now - last_status > 5:
last_status = now
self.mavproxy.send('dataflash_logger status\n')
self.mavproxy.expect("Active Rate\([0-9]s\):([1234])([0-9][0-9])[.]")
self.disarm_vehicle() self.disarm_vehicle()
except Exception as e: except Exception as e:
self.progress("Exception (%s) caught" % str(e)) self.progress("Exception (%s) caught" % str(e))