mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
workloads/exoplayer: handle no orig rotation
Do not attempt to reset rotation in teardown if target did not specify it before workload execution.
This commit is contained in:
parent
fbf1bbb1cf
commit
ff5e5821d0
@ -215,4 +215,5 @@ class ExoPlayer(ApkWorkload):
|
||||
def teardown(self, context):
|
||||
super(ExoPlayer, self).teardown(context)
|
||||
self.monitor.stop()
|
||||
self.target.set_rotation(self._original_orientation)
|
||||
if self._original_orientation is not None:
|
||||
self.target.set_rotation(self._original_orientation)
|
||||
|
Loading…
x
Reference in New Issue
Block a user