commit | 0414107fecc28ede128da40c73d400734a6c4eec | [log] [tgz] |
---|---|---|
author | leslieshaw <leslieshaw@google.com> | Fri Jun 03 22:06:55 2022 -0700 |
committer | Leslie Shaw <leslieshaw@google.com> | Mon Jun 06 23:02:34 2022 +0000 |
tree | 3206b0390d95326fbb7491b0f55c6862039e1445 | |
parent | 9517f620011dbd48755c2e882414d01efb21e22b [diff] |
ITS: improve error msg if wrong controller Bug: 234605416 Test: run ITS Change-Id: Ibd0d7ac83af89575041352912c89b901969fb09b
diff --git a/apps/CameraITS/tests/sensor_fusion/test_preview_stabilization.py b/apps/CameraITS/tests/sensor_fusion/test_preview_stabilization.py index 713d577..8f199ce 100644 --- a/apps/CameraITS/tests/sensor_fusion/test_preview_stabilization.py +++ b/apps/CameraITS/tests/sensor_fusion/test_preview_stabilization.py
@@ -137,6 +137,8 @@ # Initialize rotation rig rot_rig['cntl'] = self.rotator_cntl rot_rig['ch'] = self.rotator_ch + if rot_rig['cntl'].lower() != 'arduino': + raise AssertionError(f'You must use the arduino controller for {_NAME}.') # List of video resolutions to test supported_preview_sizes = cam.get_supported_preview_sizes(self.camera_id)
diff --git a/apps/CameraITS/tests/sensor_fusion/test_video_stabilization.py b/apps/CameraITS/tests/sensor_fusion/test_video_stabilization.py index 9417d18..c834ba3 100644 --- a/apps/CameraITS/tests/sensor_fusion/test_video_stabilization.py +++ b/apps/CameraITS/tests/sensor_fusion/test_video_stabilization.py
@@ -156,6 +156,8 @@ # Initialize rotation rig rot_rig['cntl'] = self.rotator_cntl rot_rig['ch'] = self.rotator_ch + if rot_rig['cntl'].lower() != 'arduino': + raise AssertionError(f'You must use the arduino controller for {_NAME}.') # Create list of video qualities to test supported_video_qualities = cam.get_supported_video_qualities(