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