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

Side by Side Diff: client/tests/fs_mark/fs_mark.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/flail/flail-0.2.0.tar.gz ('k') | client/tests/fsfuzzer/fsfuzzer.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 fs_mark(test.test): 5 class fs_mark(test.test):
6 version = 1 6 version = 1
7 7
8 def initialize(self): 8 def initialize(self):
9 self.job.require_gcc() 9 self.job.require_gcc()
10 10
11 11
12 # http://developer.osdl.org/dev/doubt/fs_mark/archive/fs_mark-3.2.tgz 12 # http://developer.osdl.org/dev/doubt/fs_mark/archive/fs_mark-3.2.tgz
13 def setup(self, tarball = 'fs_mark-3.2.tgz'): 13 def setup(self, tarball = 'fs_mark-3.2.tgz'):
14 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) 14 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
15 utils.extract_tarball_to_dir(tarball, self.srcdir) 15 utils.extract_tarball_to_dir(tarball, self.srcdir)
16 os.chdir(self.srcdir) 16 os.chdir(self.srcdir)
17 17
18 utils.system('make') 18 utils.make()
19 19
20 20
21 def run_once(self, dir, args = None): 21 def run_once(self, dir, args = None):
22 if not args: 22 if not args:
23 # Just provide a sample run parameters 23 # Just provide a sample run parameters
24 args = '-s 10240 -n 1000' 24 args = '-s 10240 -n 1000'
25 os.chdir(self.srcdir) 25 os.chdir(self.srcdir)
26 utils.system('./fs_mark -d %s %s' %(dir, args)) 26 utils.system('./fs_mark -d %s %s' %(dir, args))
OLDNEW
« no previous file with comments | « client/tests/flail/flail-0.2.0.tar.gz ('k') | client/tests/fsfuzzer/fsfuzzer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698