From ada83581573665f2b0706da1a3323caecec5dc87 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 21 Jan 2014 10:06:40 +0100 Subject: Show file system names in lower case. --- commands/storage/lmi/scripts/storage/fs_cmd.py | 3 ++- commands/storage/test/lmi/test_fs.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'commands/storage') diff --git a/commands/storage/lmi/scripts/storage/fs_cmd.py b/commands/storage/lmi/scripts/storage/fs_cmd.py index 93d91ca..5557852 100644 --- a/commands/storage/lmi/scripts/storage/fs_cmd.py +++ b/commands/storage/lmi/scripts/storage/fs_cmd.py @@ -108,7 +108,8 @@ class ListSupported(command.LmiLister): caps = ns.LMI_FileSystemConfigurationCapabilities.first_instance() cls = ns.LMI_FileSystemConfigurationCapabilities for fstype in caps.SupportedActualFileSystemTypes: - yield [cls.SupportedActualFileSystemTypesValues.value_name(fstype)] + fsname = cls.SupportedActualFileSystemTypesValues.value_name(fstype) + yield [fsname.lower()] class Create(command.LmiCheckResult): diff --git a/commands/storage/test/lmi/test_fs.sh b/commands/storage/test/lmi/test_fs.sh index e05d639..141de5b 100644 --- a/commands/storage/test/lmi/test_fs.sh +++ b/commands/storage/test/lmi/test_fs.sh @@ -52,7 +52,7 @@ rlPhaseStartTest rlLogInfo "Test fs list" # the last column is lower-case filesystem type in double quotes - fstype=$(cat $rlRun_LOG | cut -f 4 -d ',' | tr '[a-z]' '[A-Z]') + fstype=$(cat $rlRun_LOG | cut -f 4 -d ',' ) rlAssertEquals "Checking fs $fsname is present on $part" "\"$fsname\"" $fstype rm $rlRun_LOG -- cgit