| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 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 import os, utils | 5 import os, utils |
| 6 | 6 |
| 7 from autotest_lib.client.bin import test | 7 from autotest_lib.client.bin import test |
| 8 from autotest_lib.client.common_lib import error | 8 from autotest_lib.client.bin import factory_error as error |
| 9 | 9 |
| 10 class factory_ShowTestResults(test.test): | 10 class factory_ShowTestResults(test.test): |
| 11 version = 1 | 11 version = 1 |
| 12 preserve_srcdir = True | 12 preserve_srcdir = True |
| 13 | 13 |
| 14 def run_once(self, restart_ui=False): | 14 def run_once(self, restart_ui=False): |
| 15 # kill chrome | 15 # kill chrome |
| 16 utils.system('/sbin/initctl stop ui', ignore_status=True) | 16 utils.system('/sbin/initctl stop ui', ignore_status=True) |
| 17 | 17 |
| 18 os.chdir(self.srcdir) | 18 os.chdir(self.srcdir) |
| 19 status_file = self.autodir + '/results/default/status' | 19 status_file = self.autodir + '/results/default/status' |
| 20 utils.system('./start_test.sh ' + status_file, ignore_status=True) | 20 utils.system('./start_test.sh ' + status_file, ignore_status=True) |
| 21 | 21 |
| 22 if restart_ui: | 22 if restart_ui: |
| 23 utils.system('/sbin/initctl start ui', ignore_status=True) | 23 utils.system('/sbin/initctl start ui', ignore_status=True) |
| OLD | NEW |