Fix run_group. There's no point in it creating a directory,
as the only real user for it is the filesystems code, and the run_test
inside the group will fail as the dir already exists. Somehow this
used to work, but I have no idea how - right now it's useless.
Also fixed the error handling from _rungroup not to be so ... odd.
I can't see any reason why it can't do the normal thing and just
re-raise the exception
Signed-off-by: Martin Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2369 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/fsdev_disks_unittest.py b/client/bin/fsdev_disks_unittest.py
index 6f88224..aaf0d12 100755
--- a/client/bin/fsdev_disks_unittest.py
+++ b/client/bin/fsdev_disks_unittest.py
@@ -12,15 +12,15 @@
def test_legacy_str_to_test_flags(self):
obj = fsdev_disks._legacy_str_to_test_flags(
'ext2 / -q / / ext2')
- self.assertEqual('ext2', obj.filesystem)
+ self.assertEqual('ext2', obj.fstype)
self.assertEqual('-q', obj.mkfs_flags)
self.assertEqual('', obj.mount_options)
- self.assertEqual('ext2', obj.short_name)
+ self.assertEqual('ext2', obj.fs_tag)
obj = fsdev_disks._legacy_str_to_test_flags(
'xfs / -f -l size=128m / logbufs=8,logbsize=32768 / xfs_log8')
- self.assertEqual('xfs', obj.filesystem)
+ self.assertEqual('xfs', obj.fstype)
self.assertEqual('logbufs=8,logbsize=32768', obj.mount_options)
- self.assertEqual('xfs_log8', obj.short_name)
+ self.assertEqual('xfs_log8', obj.fs_tag)
if __name__ == '__main__':