mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-20 17:48:44 +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:
|
except KeyError:
|
||||||
return None
|
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.
|
# Internal methods: do not use outside of the class.
|
||||||
|
|
||||||
def _update_build_properties(self, filepath, props):
|
def _update_build_properties(self, filepath, props):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user