Update filesystem sample to use group code

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@638 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/samples/filesystem b/client/samples/filesystem
index 09d0d4a..dc8b2bd 100755
--- a/client/samples/filesystem
+++ b/client/samples/filesystem
@@ -10,14 +10,16 @@
 # and I have yet to point run-bash-shared-mapping at it.
 # (different mount options for ext3)
 
-for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'):
+def test_fs():
 	fs.mkfs(fstype)
 	fs.mount()
 	try:
 		job.run_test('fsx', job.tmpdir, tag=fstype)
 		job.run_test('iozone', job.tmpdir, tag=fstype)
 		job.run_test('dbench', dir=job.tmpdir, tag=fstype)
-		fs.fsck()
 	finally:
 		fs.unmount()
+		fs.fsck()
 
+for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'):
+	job.run_group(test_fs)