Browse Source

autotest: raise exception if no simulated time available

Sucking the mavlink message queue dry unexpectedly is worse than any
tests being broken and failing with a clear error.
mission-4.1.18
Peter Barker 5 years ago committed by Randy Mackay
parent
commit
03c68f991c
  1. 2
      Tools/autotest/common.py

2
Tools/autotest/common.py

@ -560,7 +560,7 @@ class AutoTest(ABC): @@ -560,7 +560,7 @@ class AutoTest(ABC):
"""Get SITL time in seconds."""
x = self.mav.messages.get("SYSTEM_TIME", None)
if x is None:
return self.get_sim_time()
raise NotAchievedException("No cached time available")
return x.time_boot_ms * 1.0e-3
def delay_sim_time(self, delay):

Loading…
Cancel
Save