1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-01 10:52:33 +01:00
This commit is contained in:
Sebastian Goscik
2016-03-17 14:11:29 +00:00
parent 17a395fbd4
commit 913d41c86d
7 changed files with 10 additions and 12 deletions

View File

@@ -123,7 +123,7 @@ class BBench(Workload):
self.device.write_value('/proc/sys/vm/drop_caches', 3)
#On android 6+ the web browser requires permissions to access the sd card
if self.device.os_version["sdk"]() >= 23:
if self.device.os_version["sdk"] >= 23:
self.device.execute("pm grant com.android.browser android.permission.READ_EXTERNAL_STORAGE")
self.device.execute("pm grant com.android.browser android.permission.WRITE_EXTERNAL_STORAGE")

View File

@@ -102,7 +102,7 @@ class Vellamo(AndroidUiAutoBenchmark):
filename = None
if test == "Browser":
result_folder = self.device.path.join(context.device_manager.package_data_directory, self.package, 'files')
for result_file in self.device.listdir(result_folder, as_root=True):
for result_file in self.device.list_directory(result_folder, as_root=True):
if result_file.startswith("Browser"):
filename = result_file
else: