mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
auto-t: iwd.py: add wait argument to scan()
Lets the test continue without waiting for the method return
This commit is contained in:
parent
86cfa25910
commit
94cc957c5e
@ -450,7 +450,7 @@ class Device(IWDDBusAbstract):
|
|||||||
self._station_debug._prop_proxy.Set(IWD_STATION_DEBUG_INTERFACE,
|
self._station_debug._prop_proxy.Set(IWD_STATION_DEBUG_INTERFACE,
|
||||||
'AutoConnect', value)
|
'AutoConnect', value)
|
||||||
|
|
||||||
def scan(self):
|
def scan(self, wait=True):
|
||||||
'''Schedule a network scan.
|
'''Schedule a network scan.
|
||||||
|
|
||||||
Possible exception: BusyEx
|
Possible exception: BusyEx
|
||||||
@ -460,7 +460,8 @@ class Device(IWDDBusAbstract):
|
|||||||
reply_handler=self._success,
|
reply_handler=self._success,
|
||||||
error_handler=self._failure)
|
error_handler=self._failure)
|
||||||
|
|
||||||
self._wait_for_async_op()
|
if wait:
|
||||||
|
self._wait_for_async_op()
|
||||||
|
|
||||||
def disconnect(self):
|
def disconnect(self):
|
||||||
'''Disconnect from the network
|
'''Disconnect from the network
|
||||||
|
Loading…
Reference in New Issue
Block a user