autotest: fixed got and want ordering in text wait
This commit is contained in:
parent
4f9b66c267
commit
350215eb70
@ -7953,7 +7953,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 want=(%s) got=(%s)" % (x.text, text))
|
self.progress(" statustext got=(%s) want=(%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