Skip to content

Commit

Permalink
autotest: improve diagnostics around expected statustext
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Feb 23, 2024
1 parent b19f8ed commit bda79c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -7966,7 +7966,7 @@ def statustext_in_collections(self, text, regex=False):
if "STATUSTEXT" not in c.collections:
raise NotAchievedException("Asked to check context but it isn't collecting!")
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 re.match(text, x.text):
return x
Expand Down

0 comments on commit bda79c3

Please sign in to comment.