test: Fix tests on RHEL7 clones (no keyring in dm-crypt).

This commit is contained in:
Milan Broz
2024-03-07 12:39:35 +01:00
parent 2f0e804fd1
commit 2c53e71415
3 changed files with 61 additions and 19 deletions

View File

@@ -5304,6 +5304,11 @@ static void KeyslotContextAndKeyringLink(void)
pbkdf.iterations = 1000;
}
if (!t_dm_crypt_keyring_support()) {
printf("WARNING: dm-crypt does not support keyring, skipping test.\n");
return;
}
OK_(get_luks2_offsets(0, 0, 0, NULL, &r_payload_offset));
OK_(create_dmdevice_over_loop(L_DEVICE_1S, r_payload_offset + 1));