test/*: skip test if essential module not loaded
This commit is contained in:
		| @@ -10,7 +10,7 @@ cleanup() | ||||
|     rm -rf "$tmpdir" | ||||
| } | ||||
|  | ||||
| command -v cryptsetup > /dev/null || exit 222 | ||||
| command -v cryptsetup > /dev/null && grep -q dm_crypt /proc/modules || exit 222 | ||||
|  | ||||
| set -ef | ||||
| trap cleanup EXIT INT | ||||
|   | ||||
| @@ -10,7 +10,7 @@ cleanup() | ||||
|     rm -rf "$tmpdir" | ||||
| } | ||||
|  | ||||
| command -v lvm > /dev/null || exit 222 | ||||
| command -v lvm > /dev/null && grep -q dm_mod /proc/modules || exit 222 | ||||
|  | ||||
| set -ef | ||||
| trap cleanup EXIT INT | ||||
|   | ||||
| @@ -9,7 +9,7 @@ cleanup() | ||||
|     rm -rf "$tmpdir" | ||||
| } | ||||
|  | ||||
| command -v zfs > /dev/null || exit 222 | ||||
| command -v zfs > /dev/null && grep -q zfs /proc/modules || exit 222 | ||||
|  | ||||
| set -ef | ||||
| trap cleanup EXIT INT | ||||
|   | ||||
		Reference in New Issue
	
	Block a user