1# Copyright 2016 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from autotest_lib.client.common_lib import error 6from autotest_lib.client.common_lib.brillo import hal_utils 7from autotest_lib.server import test 8 9 10class brillo_CameraSanity(test.test): 11 """Test the most basic camera functionality on a Brillo DUT.""" 12 version = 1 13 14 15 def run_once(self, host): 16 """Check for things that should look the same on all Brillo devices. 17 18 @param host: host object representing the device under test. 19 20 """ 21 if not hal_utils.has_hal('camera', host=host): 22 raise error.TestNAError( 23 'This device does not appear to support camera at all') 24 25 host.run('/system/bin/brillo_camera_client') 26