mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
autotest: improve diagnostics around expected statustext
This commit is contained in:
parent
c8b5de34b5
commit
d92acaffce
@ -7966,7 +7966,7 @@ Also, ignores heartbeats not from our target system'''
|
|||||||
if "STATUSTEXT" not in c.collections:
|
if "STATUSTEXT" not in c.collections:
|
||||||
raise NotAchievedException("Asked to check context but it isn't collecting!")
|
raise NotAchievedException("Asked to check context but it isn't collecting!")
|
||||||
for x in c.collections["STATUSTEXT"]:
|
for x in c.collections["STATUSTEXT"]:
|
||||||
self.progress(" statustext=%s vs text=%s" % (x.text, text))
|
self.progress(" statustext want=(%s) got=(%s)" % (x.text, text))
|
||||||
if regex:
|
if regex:
|
||||||
if re.match(text, x.text):
|
if re.match(text, x.text):
|
||||||
return x
|
return x
|
||||||
|
Loading…
Reference in New Issue
Block a user