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

Unified Diff: client/samples/filesystem

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/profilers/readprofile/readprofile.py ('k') | client/tests/aio_dio_bugs/aio_dio_bugs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/filesystem
diff --git a/client/samples/filesystem b/client/samples/filesystem
index 87abe0fc596e465e48c768d5e79ea0716581c76c..2fd1b9d75d042ace3a2eb2f70b084aa30445e5bb 100644
--- a/client/samples/filesystem
+++ b/client/samples/filesystem
@@ -1,9 +1,9 @@
# Uncomment this line, and replace the device with something sensible
# for you ...
-# fs = job.filesystem('/dev/hda2', job.tmpdir)
+# fs = job.partition('/dev/hda2', job.tmpdir)
# or ...
-fs = job.filesystem('/tmp/looped', job.tmpdir, loop_size = 1024)
+part = job.partition('/tmp/looped', 1024, job.tmpdir)
# dbench 1024, ltp, 1024-byte blocksize, a few other things. Lots of fscking.
# I haven't tested nobh mode yet,
@@ -11,15 +11,15 @@ fs = job.filesystem('/tmp/looped', job.tmpdir, loop_size = 1024)
# (different mount options for ext3)
def test_fs():
- fs.mkfs(fstype)
- fs.mount()
+ part.mkfs(fstype)
+ part.mount()
try:
- job.run_test('fsx', dir=job.tmpdir, tag=fstype)
- job.run_test('iozone', dir=job.tmpdir, tag=fstype)
- job.run_test('dbench', dir=job.tmpdir, tag=fstype)
+ job.run_test('fsx', dir=part.mountpoint, tag=fstype)
+ job.run_test('iozone', dir=part.mountpoint, tag=fstype)
+ job.run_test('dbench', dir=part.mountpoint, tag=fstype)
finally:
- fs.unmount()
- fs.fsck()
+ part.unmount()
+ part.fsck()
for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'):
job.run_group(test_fs)
« no previous file with comments | « client/profilers/readprofile/readprofile.py ('k') | client/tests/aio_dio_bugs/aio_dio_bugs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698