summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-03-02 19:16:48 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2014-03-02 21:27:26 +0100
commit3ff10f5e61df721ea06dc23575932df2d0215c50 (patch)
treeebe598be99f608fb326bd619128061fdfd0b247e
parent75b5855ca1b4d524cb30a4373d1d2fe81d7b21f2 (diff)
downloadlvm2-3ff10f5e61df721ea06dc23575932df2d0215c50.tar.gz
tests: disable test which leaks node
This test is not detected as fault but leak device node on a real /dev. Added FIXME.
-rw-r--r--test/shell/name-mangling.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/shell/name-mangling.sh b/test/shell/name-mangling.sh
index 4522a55b6..b5906c119 100644
--- a/test/shell/name-mangling.sh
+++ b/test/shell/name-mangling.sh
@@ -83,9 +83,9 @@ function check_create_and_remove()
function check_dm_field()
{
local mode=$1
- local dm_name="$2"
+ local dm_name=$2
local field=$3
- local expected="$4"
+ local expected=$4
value=$(dmsetup info --rows --noheadings --manglename $mode -c -o $field "${DM_DEV_DIR}/mapper/${PREFIX}$dm_name" 2> err || true)
@@ -103,7 +103,7 @@ function check_dm_field()
function check_expected_names()
{
local mode=$1
- local dm_name="$2"
+ local dm_name=$2
local r=0
create_dm_dev none "$dm_name"
@@ -122,8 +122,8 @@ function check_expected_names()
function check_mangle_cmd()
{
local mode=$1
- local dm_name="$2"
- local expected="$3"
+ local dm_name=$2
+ local expected=$3
local rename_expected=0
local r=0
@@ -191,7 +191,11 @@ check_expected_names none 'a\x5cx20b' 'a\x5cx20b' 'a\x5cx20b' 'a\x20b'
check_mangle_cmd none 'a b' 'OK'
check_mangle_cmd none 'a\x20b' 'a b'
-check_mangle_cmd none 'a b\x20c' 'a b c'
+#
+# FIXME: this test leave entry in /dev/mapper dir
+# and is not detected nor cleaned
+#
+#check_mangle_cmd none 'a b\x20c' 'a b c'
check_mangle_cmd none 'a\x5cx20b' 'a\x20b'