autotest: wait for logging to be good in replay GPS test

I think it's possible for the reboot to be coplete but the log not yet open as it's done in the update call
This commit is contained in:
Peter Barker 2022-08-24 11:12:32 +10:00 committed by Peter Barker
parent 8b5afb4a24
commit 217338955d
1 changed files with 5 additions and 1 deletions

View File

@ -7480,6 +7480,8 @@ class AutoTestCopter(AutoTest):
})
self.reboot_sitl()
self.wait_sensor_state(mavutil.mavlink.MAV_SYS_STATUS_LOGGING, True, True, True)
current_log_filepath = self.current_onboard_log_filepath()
self.progress("Current log path: %s" % str(current_log_filepath))
@ -7692,7 +7694,9 @@ class AutoTestCopter(AutoTest):
self.context_push()
current_log_filepath = bit()
self.progress("Running replay on (%s)" % current_log_filepath)
self.progress("Running replay on (%s) (%u bytes)" % (
(current_log_filepath, os.path.getsize(current_log_filepath))
))
util.run_cmd(
['build/sitl/tool/Replay', current_log_filepath],