| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 # DESCRIPTION : | 6 # DESCRIPTION : |
| 7 # | 7 # |
| 8 # This is an example factory test that does not really do anything -- | 8 # This is a stub factory test, run once reboot tests are completed, to |
| 9 # it displays a message in the center of the testing area, as | 9 # allow the autotest logs to record success status, and thereby for |
| 10 # communicated by arguments to run_once(). This test makes use of the | 10 # the UI to display that status. |
| 11 # factory_test library to display its UI, and to monitor keyboard | 11 |
| 12 # events for test-switching triggers. This test can be terminated by | |
| 13 # typing SHIFT-Q. | |
| 14 | 12 |
| 15 from autotest_lib.client.bin import test | 13 from autotest_lib.client.bin import test |
| 16 from autotest_lib.client.common_lib import error | 14 from autotest_lib.client.bin import factory |
| 17 from autotest_lib.client.common_lib import factory_test | |
| 18 | 15 |
| 19 | 16 |
| 20 class factory_RebootStub(test.test): | 17 class factory_RebootStub(test.test): |
| 21 version = 1 | 18 version = 1 |
| 22 | 19 |
| 23 def run_once(self): | 20 def run_once(self): |
| 24 factory_test.XXX_log('factory_RebootStub') | 21 factory.log('%s run_once' % self.__class__) |
| OLD | NEW |