Content-Type: multipart/mixed; boundary="===============6977853830115517518==" MIME-Version: 1.0 From: James Prestwood To: iwd at lists.01.org Subject: [PATCH v3 08/13] auto-t: iwd.py: make wait() a static method Date: Thu, 07 Oct 2021 13:49:52 -0700 Message-ID: <20211007204957.3745985-8-prestwoj@gmail.com> In-Reply-To: 20211007204957.3745985-1-prestwoj@gmail.com --===============6977853830115517518== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=3DFalse) = @staticmethod -- = 2.31.1 --===============6977853830115517518==--