From 4daf8ef0dc2422671da535a03a3b93a3b22fedd7 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Thu, 11 Jul 2024 12:49:19 +0200 Subject: [PATCH] tests: skip reencryption test if non-AES ciphers fails in luksFormat --- tests/luks2-reencryption-test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/luks2-reencryption-test b/tests/luks2-reencryption-test index a5f020e72..9c13cd27c 100755 --- a/tests/luks2-reencryption-test +++ b/tests/luks2-reencryption-test @@ -948,9 +948,9 @@ prepare dev_size_mb=32 setup_luks2_env # Check that we can use other ciphers than AES in userspace backend. -echo $PWD1 | $CRYPTSETUP -q luksFormat --type luks2 -c twofish-xts-plain64 $FAST_PBKDF_ARGON $DEV || fail +echo $PWD1 | $CRYPTSETUP -q luksFormat --type luks2 -c twofish-xts-plain64 $FAST_PBKDF_ARGON $DEV || skip "Cannot use Twofish cipher, test skipped" echo $PWD1 | $CRYPTSETUP reencrypt $DEV -q $FAST_PBKDF_ARGON 2>/dev/null || skip "Cannot use Twofish cipher, test skipped" -echo $PWD1 | $CRYPTSETUP -q luksFormat --type luks2 -c serpent-xts-plain64 $FAST_PBKDF_ARGON $DEV || fail +echo $PWD1 | $CRYPTSETUP -q luksFormat --type luks2 -c serpent-xts-plain64 $FAST_PBKDF_ARGON $DEV || skip "Cannot use Serpent cipher, test skipped" echo $PWD1 | $CRYPTSETUP reencrypt $DEV -q $FAST_PBKDF_ARGON 2>/dev/null || skip "Cannot use Serpent cipher, test skipped." wipe_dev $DEV