autotest: improve diagnostics around expected statustext

This commit is contained in:
Peter Barker 2024-02-23 14:18:13 +11:00 committed by Peter Barker
parent c8b5de34b5
commit d92acaffce
1 changed files with 1 additions and 1 deletions

View File

@ -7966,7 +7966,7 @@ Also, ignores heartbeats not from our target system'''
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