All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] auto-t: iwd.py: add wait argument to scan()
@ 2022-02-08 17:35 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-02-08 17:35 UTC (permalink / raw)
  To: iwd

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

Lets the test continue without waiting for the method return
---
 autotests/util/iwd.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
index 54b4819e..170dd96b 100755
--- a/autotests/util/iwd.py
+++ b/autotests/util/iwd.py
@@ -450,7 +450,7 @@ class Device(IWDDBusAbstract):
         self._station_debug._prop_proxy.Set(IWD_STATION_DEBUG_INTERFACE,
                                             'AutoConnect', value)
 
-    def scan(self):
+    def scan(self, wait=True):
         '''Schedule a network scan.
 
            Possible exception: BusyEx
@@ -460,7 +460,8 @@ class Device(IWDDBusAbstract):
                                reply_handler=self._success,
                                error_handler=self._failure)
 
-        self._wait_for_async_op()
+        if wait:
+            self._wait_for_async_op()
 
     def disconnect(self):
         '''Disconnect from the network
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] auto-t: iwd.py: add wait argument to scan()
@ 2022-02-10 22:24 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-02-10 22:24 UTC (permalink / raw)
  To: iwd

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

Hi James,

On 2/8/22 11:35, James Prestwood wrote:
> Lets the test continue without waiting for the method return
> ---
>   autotests/util/iwd.py | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
> 

Both applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-10 22:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-08 17:35 [PATCH 1/2] auto-t: iwd.py: add wait argument to scan() James Prestwood
2022-02-10 22:24 Denis Kenzior

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.