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

Side by Side Diff: client/tests/rtc/rtc.py

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 2 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
« no previous file with comments | « client/tests/qemu_iotests/qemu_iotests.py ('k') | client/tests/scrashme/scrashme.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 import os 1 import os
2 from autotest_lib.client.bin import test, utils 2 from autotest_lib.client.bin import test, utils
3 from autotest_lib.client.common_lib import error 3 from autotest_lib.client.common_lib import error
4 4
5 class rtc(test.test): 5 class rtc(test.test):
6 version = 1 6 version = 1
7 preserve_srcdir = True 7 preserve_srcdir = True
8 8
9 def setup(self): 9 def setup(self):
10 os.chdir(self.srcdir) 10 os.chdir(self.srcdir)
11 utils.system('make clobber') 11 utils.make('clobber')
12 utils.system('make') 12 utils.make()
13 13
14 14
15 def initialize(self): 15 def initialize(self):
16 self.job.require_gcc() 16 self.job.require_gcc()
17 17
18 18
19 def run_once(self, def_rtc="/dev/rtc0", maxfreq=64): 19 def run_once(self, def_rtc="/dev/rtc0", maxfreq=64):
20 if not os.path.exists(def_rtc): 20 if not os.path.exists(def_rtc):
21 raise error.TestNAError("RTC device %s does not exist" % def_rtc) 21 raise error.TestNAError("RTC device %s does not exist" % def_rtc)
22 os.chdir(self.srcdir) 22 os.chdir(self.srcdir)
23 utils.system('./rtctest %s %s' % (def_rtc, maxfreq)) 23 utils.system('./rtctest %s %s' % (def_rtc, maxfreq))
OLDNEW
« no previous file with comments | « client/tests/qemu_iotests/qemu_iotests.py ('k') | client/tests/scrashme/scrashme.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698