1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01: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:
Sergei Trofimov 2018-02-08 14:55:16 +00:00 committed by Marc Bonnici
parent fbf1bbb1cf
commit ff5e5821d0

View File

@ -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)