mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00: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:
parent
c094a47f12
commit
bf598d1873
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user