Content-Type: multipart/mixed; boundary="===============6263429213927020481==" MIME-Version: 1.0 From: James Prestwood To: iwd at lists.01.org Subject: [PATCH 08/12] auto-t: iwd.py: make wait() a static method Date: Mon, 04 Oct 2021 09:48:58 -0700 Message-ID: <20211004164902.2274318-8-prestwoj@gmail.com> In-Reply-To: 20211004164902.2274318-1-prestwoj@gmail.com --===============6263429213927020481== 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 --===============6263429213927020481==--