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

Side by Side Diff: client/tests/tsc/tsc.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/tbench/tbench.py ('k') | client/tests/xmtest/xmtest.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, re, logging 1 import os, re, logging
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 tsc(test.test): 5 class tsc(test.test):
6 version = 3 6 version = 3
7 7
8 preserve_srcdir = True 8 preserve_srcdir = True
9 9
10 def setup(self): 10 def setup(self):
11 os.chdir(self.srcdir) 11 os.chdir(self.srcdir)
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, args = '-t 650'): 19 def run_once(self, args = '-t 650'):
20 result = utils.run(self.srcdir + '/checktsc ' + args, 20 result = utils.run(self.srcdir + '/checktsc ' + args,
21 stdout_tee=open(os.path.join(self.resultsdir, 21 stdout_tee=open(os.path.join(self.resultsdir,
22 'checktsc.log'), 'w'), 22 'checktsc.log'), 'w'),
(...skipping 29 matching lines...) Expand all
52 max_delta = abs(cur_delta) 52 max_delta = abs(cur_delta)
53 reason = ln 53 reason = ln
54 if max_delta > threshold: 54 if max_delta > threshold:
55 reason = "Latency %s exceeds threshold %d" % (reason, 55 reason = "Latency %s exceeds threshold %d" % (reason,
56 threshold) 56 threshold)
57 raise error.TestFail(reason) 57 raise error.TestFail(reason)
58 58
59 ## If we are here, we failed to qualify the reason of test failre 59 ## If we are here, we failed to qualify the reason of test failre
60 ## Consider it as a test error 60 ## Consider it as a test error
61 raise error.TestError(default_reason) 61 raise error.TestError(default_reason)
OLDNEW
« no previous file with comments | « client/tests/tbench/tbench.py ('k') | client/tests/xmtest/xmtest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698