All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 07/11] auto-t: iwd.py: make wait() a static method
@ 2021-10-05 22:00 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2021-10-05 22:00 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 683 bytes --]

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
-- 
2.31.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-05 22:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 22:00 [PATCH v2 07/11] auto-t: iwd.py: make wait() a static method James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.