aboutsummaryrefslogtreecommitdiff
path: root/apps/CameraITS/tests/scene1/test_burst_sameness_manual.py
diff options
context:
space:
mode:
authorYin-Chia Yeh <yinchiayeh@google.com>2014-10-14 17:18:36 -0700
committerYin-Chia Yeh <yinchiayeh@google.com>2014-10-15 13:10:37 -0700
commit9615995da440156c1a0c6759179d046314678029 (patch)
treef013b9a9f148aa46ef4103d22ef05c440803258b /apps/CameraITS/tests/scene1/test_burst_sameness_manual.py
parent2760cd5bc10f76cab96bd3fe7525bda6ed9328e9 (diff)
downloadpdk-9615995da440156c1a0c6759179d046314678029.tar.gz
Camera2 ITS: add proper capability gating
Skip tests if corresponding capability is not supported. Bug: 17994909 Change-Id: I48fcd2a766f62a44e3cdb933006ca9e6f9350ad3
Diffstat (limited to 'apps/CameraITS/tests/scene1/test_burst_sameness_manual.py')
-rw-r--r--apps/CameraITS/tests/scene1/test_burst_sameness_manual.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/CameraITS/tests/scene1/test_burst_sameness_manual.py b/apps/CameraITS/tests/scene1/test_burst_sameness_manual.py
index e500860..3858c0c 100644
--- a/apps/CameraITS/tests/scene1/test_burst_sameness_manual.py
+++ b/apps/CameraITS/tests/scene1/test_burst_sameness_manual.py
@@ -13,14 +13,12 @@
# limitations under the License.
import its.image
+import its.caps
import its.device
import its.objects
import its.target
import os.path
import numpy
-import pylab
-import matplotlib
-import matplotlib.pyplot
def main():
"""Take long bursts of images and check that they're all identical.
@@ -41,6 +39,10 @@ def main():
# Capture at the smallest resolution.
props = cam.get_camera_properties()
+ if not its.caps.manual_sensor(props):
+ print "Test skipped"
+ return
+
_, fmt = its.objects.get_fastest_manual_capture_settings(props)
e, s = its.target.get_target_exposure_combos(cam)["minSensitivity"]
req = its.objects.manual_capture_request(s, e)