diff options
Diffstat (limited to 'apps/CameraITS/tests/scene0/test_sensor_events.py')
-rw-r--r-- | apps/CameraITS/tests/scene0/test_sensor_events.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/CameraITS/tests/scene0/test_sensor_events.py b/apps/CameraITS/tests/scene0/test_sensor_events.py index 2097310..61f0383 100644 --- a/apps/CameraITS/tests/scene0/test_sensor_events.py +++ b/apps/CameraITS/tests/scene0/test_sensor_events.py @@ -13,6 +13,7 @@ # limitations under the License. import its.device +import its.caps import time def main(): @@ -23,6 +24,12 @@ def main(): """ with its.device.ItsSession() as cam: + props = cam.get_camera_properties() + # Only run test if the appropriate caps are claimed. + if not its.caps.sensor_fusion(props): + print "Test skipped" + return + cam.start_sensor_events() time.sleep(1) events = cam.get_sensor_events() |