blob: 093803e70f0f9ce86818a0cb43d13735bd626e1c [file] [log] [blame]
J. Richard Barnette67ccb872012-04-19 16:34:56 -07001# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Craig Harrison2b6c6fc2011-06-23 10:34:02 -07002# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Tom Wai-Hong Tam386712c2013-07-18 15:12:51 +08005from autotest_lib.server import test
J. Richard Barnette33aec9f2013-02-01 16:38:41 -08006
Craig Harrison91944552011-08-04 14:09:55 -07007
Craig Harrison2b6c6fc2011-06-23 10:34:02 -07008class ServoTest(test.test):
Tom Wai-Hong Tam386712c2013-07-18 15:12:51 +08009 """ServoTest: a test subclassing it requires Servo board connected.
Craig Harrison2b6c6fc2011-06-23 10:34:02 -070010
Tom Wai-Hong Tam386712c2013-07-18 15:12:51 +080011 It checks the servo connectivity on initialization.
Craig Harrison2b6c6fc2011-06-23 10:34:02 -070012 """
Tom Wai-Hong Tam386712c2013-07-18 15:12:51 +080013 version = 3
J. Richard Barnette67ccb872012-04-19 16:34:56 -070014
Tom Wai-Hong Tam54f4c582013-07-18 12:05:27 +080015 def initialize(self, host):
Tom Wai-Hong Tam386712c2013-07-18 15:12:51 +080016 """Create a Servo object and initialize it."""
J. Richard Barnette33aec9f2013-02-01 16:38:41 -080017 self.servo = host.servo
Tom Wai-Hong Tam386712c2013-07-18 15:12:51 +080018 self.servo.initialize_dut()
J. Richard Barnette67ccb872012-04-19 16:34:56 -070019
Tom Wai-Hong Tam386712c2013-07-18 15:12:51 +080020 # TODO(waihong): Record the servo logs.