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

Side by Side Diff: client/tests/scrashme/scrashme.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/rtc/rtc.py ('k') | client/tests/signaltest/signaltest.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 3
4 4
5 class scrashme(test.test): 5 class scrashme(test.test):
6 """ 6 """
7 Runs the scrashme syscalls test suite. This test mode will exercise 7 Runs the scrashme syscalls test suite. This test mode will exercise
8 kernel syscalls randomically, or in a sequential fashion. 8 kernel syscalls randomically, or in a sequential fashion.
9 9
10 @note: As of the current version shipped, scrashme does support the 10 @note: As of the current version shipped, scrashme does support the
(...skipping 25 matching lines...) Expand all
36 version = 2 36 version = 2
37 37
38 def initialize(self): 38 def initialize(self):
39 self.job.require_gcc() 39 self.job.require_gcc()
40 40
41 41
42 def setup(self, tarball = 'scrashme-git-snapshot-03-18-2010.tar.bz2'): 42 def setup(self, tarball = 'scrashme-git-snapshot-03-18-2010.tar.bz2'):
43 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) 43 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
44 utils.extract_tarball_to_dir(tarball, self.srcdir) 44 utils.extract_tarball_to_dir(tarball, self.srcdir)
45 os.chdir(self.srcdir) 45 os.chdir(self.srcdir)
46 utils.system('make') 46 utils.make()
47 47
48 48
49 def run_once(self, args_list=''): 49 def run_once(self, args_list=''):
50 if args_list: 50 if args_list:
51 args = args_list 51 args = args_list
52 else: 52 else:
53 args = '--mode rotate' 53 args = '--mode rotate'
54 54
55 scrashme_path = os.path.join(self.srcdir, 'scrashme') 55 scrashme_path = os.path.join(self.srcdir, 'scrashme')
56 utils.system("%s %s" % (scrashme_path, args)) 56 utils.system("%s %s" % (scrashme_path, args))
OLDNEW
« no previous file with comments | « client/tests/rtc/rtc.py ('k') | client/tests/signaltest/signaltest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698