mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-14 14:48:53 +00:00
Merge pull request #3 from jimboatarm/wifi_check
Add method to check wifi access on device
This commit is contained in:
commit
6a1ca75f2d
@ -649,6 +649,10 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
def is_wifi_connected(self):
|
||||
self.logger.debug('Checking for wi-fi connectivity.')
|
||||
return self.execute('dumpsys wifi| grep curState=ConnectedState')
|
||||
|
||||
# Internal methods: do not use outside of the class.
|
||||
|
||||
def _update_build_properties(self, filepath, props):
|
||||
|
Loading…
x
Reference in New Issue
Block a user