]> sourceware.org Git - lvm2.git/commitdiff
add simple test for dev node usability (detect devices mounted with nodev)
authorZdeněk Kabeláč <zkabelac@redhat.com>
Wed, 10 Dec 2008 16:15:41 +0000 (16:15 +0000)
committerZdeněk Kabeláč <zkabelac@redhat.com>
Wed, 10 Dec 2008 16:15:41 +0000 (16:15 +0000)
test/lvm-utils.sh
test/t-000-basic.sh

index aee443dc6fe7cbc8ac7e69d91d9e16c4ccde07f5..cee2b14acd49566b8c8723cb1c71b3e74c68bf15 100644 (file)
@@ -185,6 +185,4 @@ init_root_dir_()
 EOF
 }
 
-if test $(this_test_) != 000-basic; then
-  init_root_dir_
-fi
+init_root_dir_
index 6cbc0675b98062aa0291311428cedde76b158e92..ed311de9a71d376c4bde08c6e78cd2c60915b02f 100755 (executable)
@@ -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)"
This page took 0.034114 seconds and 5 git commands to generate.