Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2022)

Side by Side Diff: client/site_tests/factory_ShowTestResults/factory_ShowTestResults.py

Issue 3438007: Replace newline characters in factory tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Address review comments Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698