mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +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:
@@ -75,7 +75,7 @@ class Camerarecord(UiAutomatorWorkload):
|
|||||||
.format(self.package, framestats_file))
|
.format(self.package, framestats_file))
|
||||||
self.device.pull_file(framestats_file,
|
self.device.pull_file(framestats_file,
|
||||||
context.output_directory,
|
context.output_directory,
|
||||||
as_root=True)
|
as_root=self.device.is_rooted)
|
||||||
self.device.delete_file(framestats_file)
|
self.device.delete_file(framestats_file)
|
||||||
|
|
||||||
# Stop the activity
|
# Stop the activity
|
||||||
|
Reference in New Issue
Block a user