From 2e882946f818871491a98dc7407abd81c72a69d8 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 7 Oct 2021 13:49:52 -0700 Subject: [PATCH] auto-t: iwd.py: make wait() a static method This allows it to be used without initializing an IWD class: IWD.wait(1) --- 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 63b526fd..d6a7fe06 100755 --- a/autotests/util/iwd.py +++ b/autotests/util/iwd.py @@ -1133,7 +1133,8 @@ class IWD(AsyncOpAbstract): ' condition was not met in '\ + str(max_wait) + ' sec')) - def wait(self, time): + @staticmethod + def wait(time): ctx.non_block_wait(lambda : False, time, exception=False) @staticmethod