1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

Camerarecord: Updated to only use root if device is rooted.

Previously the workload would always try and use root to pull framestats file
causing it to fail on unrooted devices.
This commit is contained in:
Marc Bonnici 2017-05-22 10:42:00 +01:00
parent c094a47f12
commit bf598d1873

View File

@ -75,7 +75,7 @@ class Camerarecord(UiAutomatorWorkload):
.format(self.package, framestats_file))
self.device.pull_file(framestats_file,
context.output_directory,
as_root=True)
as_root=self.device.is_rooted)
self.device.delete_file(framestats_file)
# Stop the activity