3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 18:38:48 +02:00

auto-t: properly print wait_for_object_change exception

This commit is contained in:
James Prestwood 2021-04-22 10:37:44 -07:00 committed by Denis Kenzior
parent 1f4d73ab73
commit cb6faed69a

View File

@ -1064,7 +1064,8 @@ class IWD(AsyncOpAbstract):
# If neither the initial or expected condition evaluate the # If neither the initial or expected condition evaluate the
# object must be in another unexpected state. # object must be in another unexpected state.
if not eval(from_str) and not eval(to_str): if not eval(from_str) and not eval(to_str):
raise Exception('unexpected condition between [%s] and [%s]' % from_str, to_str) raise Exception('unexpected condition between [%s] and [%s]' %
(from_str, to_str))
# Initial condition does not evaluate but expected does, pass # Initial condition does not evaluate but expected does, pass
if not eval(from_str) and eval(to_str): if not eval(from_str) and eval(to_str):