1
0
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:
jimboatarm 2016-05-11 10:01:20 +01:00
commit 6a1ca75f2d

View File

@ -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):