commit 2e882946f818871491a98dc7407abd81c72a69d8
parent 63b0778c9969408a32a9c2f77d85d611529ce219
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 7 Oct 2021 13:49:52 -0700
auto-t: iwd.py: make wait() a static method
This allows it to be used without initializing an IWD class:
IWD.wait(1)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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