From cb6faed69af4b89965266e14db5fd7cb653d4d81 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 22 Apr 2021 10:37:44 -0700 Subject: [PATCH] auto-t: properly print wait_for_object_change exception --- autotests/util/iwd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py index 6cd7a1a8..e6421088 100755 --- a/autotests/util/iwd.py +++ b/autotests/util/iwd.py @@ -1064,7 +1064,8 @@ class IWD(AsyncOpAbstract): # If neither the initial or expected condition evaluate the # object must be in another unexpected state. 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 if not eval(from_str) and eval(to_str):