1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-14 09:12:33 +01:00

Add network connectivity check

Add a more general check that pings a network host rather than checking
the status of dumpsys wifi. This is because not all devices are
connected via wifi.
This commit is contained in:
John Richardson
2016-06-02 12:35:37 +01:00
parent 4bc8aab324
commit 69db2f2f41
7 changed files with 30 additions and 3 deletions

View File

@@ -124,6 +124,9 @@ class Multiapp(AndroidUiAutoBenchmark):
def initialize(self, context):
super(Multiapp, self).initialize(context)
if not self.device.is_network_connected():
raise DeviceError('Network is not connected for device {}'.format(self.device.name))
# Check for workload dependencies before proceeding
jpeg_files = [entry for entry in os.listdir(self.dependencies_directory) if entry.endswith(".jpg")]