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

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

Issue 2857012: Batched update of factory tests. (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: finished comment Created 10 years, 6 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 import os, utils
6 from autotest_lib.client.bin import test
7 from autotest_lib.client.common_lib import error
8
9 class hardware_Touchpad(test.test):
10 version = 1
11 preserve_srcdir = True
12
13
14 def run_once(self, restart_ui=False):
15
16 # kill chrome
17 utils.system('/sbin/initctl stop ui', ignore_status=True)
18
19 os.chdir(self.srcdir)
20 args = ''
21 if restart_ui:
22 args += '--exit-on-error'
23 status = utils.system('./start_test.sh ' + args, ignore_status=True)
24
25 if restart_ui:
26 utils.system('/sbin/initctl start ui', ignore_status=True)
27
28 if status:
29 raise error.TestFail('Test failed.')
OLDNEW
« no previous file with comments | « client/site_tests/hardware_Touchpad/control ('k') | client/site_tests/hardware_Touchpad/src/TouchpadTest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698