From: Zdeněk Kabeláč Date: Wed, 10 Dec 2008 16:15:41 +0000 (+0000) Subject: add simple test for dev node usability (detect devices mounted with nodev) X-Git-Tag: old-v2_02_44~57 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=5f1b8f71f3539a41a3d3150c8877473c00d66bcd;p=lvm2.git add simple test for dev node usability (detect devices mounted with nodev) --- diff --git a/test/lvm-utils.sh b/test/lvm-utils.sh index aee443dc6..cee2b14ac 100644 --- a/test/lvm-utils.sh +++ b/test/lvm-utils.sh @@ -185,6 +185,4 @@ init_root_dir_() EOF } -if test $(this_test_) != 000-basic; then - init_root_dir_ -fi +init_root_dir_ diff --git a/test/t-000-basic.sh b/test/t-000-basic.sh index 6cbc0675b..ed311de9a 100755 --- a/test/t-000-basic.sh +++ b/test/t-000-basic.sh @@ -23,3 +23,8 @@ diff -u actual expected # Need mdadm for some pvcreate tests # verify mdadm is installed and in path (needed for pvcreate tests) ... is it? which mdadm + +mknod $G_root_/dev/null c 1 3 || + error "Can't create nodes on filesystem" +echo >$G_root_/dev/null || + error "Filesystem for tests does not allow using device nodes (check nodev)"