blob: 9e6a185063f1e565e33c03369e77a5889e437e0e [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os, utils
from autotest_lib.client.bin import test
from autotest_lib.client.bin import factory_error as error
class factory_ShowTestResults(test.test):
version = 1
preserve_srcdir = True
def run_once(self, restart_ui=False):
# kill chrome
utils.system('/sbin/initctl stop ui', ignore_status=True)
os.chdir(self.srcdir)
status_file = self.autodir + '/results/default/status'
utils.system('./start_test.sh ' + status_file, ignore_status=True)
if restart_ui:
utils.system('/sbin/initctl start ui', ignore_status=True)