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

Side by Side Diff: client/tests/perfmon/perfmon.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/netpipe/netpipe.py ('k') | client/tests/pi_tests/pi_tests.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 1 import os, re
2 from autotest_lib.client.bin import utils, test 2 from autotest_lib.client.bin import utils, test
3 from autotest_lib.client.common_lib import error 3 from autotest_lib.client.common_lib import error
4 4
5 # test requires at least 2.6.26, will skip otherwise (check is internal) 5 # test requires at least 2.6.26, will skip otherwise (check is internal)
6 class perfmon(test.test): 6 class perfmon(test.test):
7 version = 16 7 version = 16
8 8
9 def setup(self, tarball = 'perfmon-tests-0.3.tar.gz'): 9 def setup(self, tarball = 'perfmon-tests-0.3.tar.gz'):
10 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) 10 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
11 utils.extract_tarball_to_dir(tarball, self.srcdir) 11 utils.extract_tarball_to_dir(tarball, self.srcdir)
12 os.chdir(self.srcdir) 12 os.chdir(self.srcdir)
13 utils.system('make') 13 utils.make()
14 14
15 15
16 def initialize(self): 16 def initialize(self):
17 self.job.require_gcc() 17 self.job.require_gcc()
18 self.results = [] 18 self.results = []
19 19
20 20
21 def run_once(self, dir = None, nprocs = None, args = ''): 21 def run_once(self, dir = None, nprocs = None, args = ''):
22 cmd = self.srcdir + '/tests/pfm_tests' + args 22 cmd = self.srcdir + '/tests/pfm_tests' + args
23 # self.results.append(utils.system_output(cmd, retain_output=True)) 23 # self.results.append(utils.system_output(cmd, retain_output=True))
24 if 'FAIL' in utils.system_output(cmd, retain_output=True): 24 if 'FAIL' in utils.system_output(cmd, retain_output=True):
25 raise error.TestError('some perfmon tests failed') 25 raise error.TestError('some perfmon tests failed')
OLDNEW
« no previous file with comments | « client/tests/netpipe/netpipe.py ('k') | client/tests/pi_tests/pi_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698