test/*: skip test if essential module not loaded

This commit is contained in:
illiliti committed 2021-07-31 21:06:35 +03:00
1 parent c9da1e8a55
commit b9d168b0e6
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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