aboutsummaryrefslogtreecommitdiff
path: root/apps/CameraITS/tests/scene1/test_3a.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/CameraITS/tests/scene1/test_3a.py')
-rw-r--r--apps/CameraITS/tests/scene1/test_3a.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/CameraITS/tests/scene1/test_3a.py b/apps/CameraITS/tests/scene1/test_3a.py
index d179883..6cb8b51 100644
--- a/apps/CameraITS/tests/scene1/test_3a.py
+++ b/apps/CameraITS/tests/scene1/test_3a.py
@@ -13,6 +13,7 @@
# limitations under the License.
import its.device
+import its.caps
def main():
"""Basic test for bring-up of 3A.
@@ -21,6 +22,11 @@ def main():
"""
with its.device.ItsSession() as cam:
+ props = cam.get_camera_properties()
+ if not its.caps.read_3a(props):
+ print "Test skipped"
+ return
+
sens, exp, gains, xform, focus = cam.do_3a()
print "AE: sensitivity %d, exposure %dms" % (sens, exp/1000000)
print "AWB: gains", gains, "transform", xform