diff options
author | Milan Broz <gmazyland@gmail.com> | 2012-08-14 15:54:31 +0200 |
---|---|---|
committer | Milan Broz <gmazyland@gmail.com> | 2012-08-14 15:54:31 +0200 |
commit | 15442c174701c450ed429f7d2cd40f7dedd56bb9 (patch) | |
tree | 2f0b56948e9d129cd601f7c15d28af85286d4844 | |
parent | ff9db165eb8770c90fc67c6548ede089819b29f5 (diff) | |
download | cryptsetup-15442c174701c450ed429f7d2cd40f7dedd56bb9.tar.gz cryptsetup-15442c174701c450ed429f7d2cd40f7dedd56bb9.tar.bz2 cryptsetup-15442c174701c450ed429f7d2cd40f7dedd56bb9.zip |
Modprobe kernel modules early in api-test.
-rw-r--r-- | tests/api-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/api-test.c b/tests/api-test.c index a96a31a..c11daf5 100644 --- a/tests/api-test.c +++ b/tests/api-test.c @@ -440,6 +440,8 @@ static int _setup(void) * volume_key = bb21158c733229347bd4e681891e213d94c685be6a5b84818afe7a78a6de7a1a */ _system(" [ ! -e " VALID_HEADER " ] && bzip2 -dk " VALID_HEADER ".bz2", 1); + _system("modprobe dm-crypt", 0); + _system("modprobe dm-verity", 0); return 0; } @@ -1649,7 +1651,6 @@ static void VerityTest(void) OK_(crypt_set_data_device(cd, DEVICE_1)); FAIL_(crypt_activate_by_volume_key(cd, NULL, root_hash, 32, 0), "Data corrupted");; - _system("modprobe dm-verity", 0); OK_(crypt_set_data_device(cd, DEVICE_EMPTY)); if (crypt_activate_by_volume_key(cd, CDEVICE_1, root_hash, 32, CRYPT_ACTIVATE_READONLY) == -ENOTSUP) { |