nixos/tests: fix swap-random-encryption (#457974)

This commit is contained in:
Sandro 2025-11-07 18:17:43 +00:00 committed by GitHub
commit 41f231f5ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,7 +78,7 @@
if not any(cipher_pattern.fullmatch(line) for line in results):
raise Exception ("swap device encryption does not use the cipher specified in the configuration")
key_size_pattern = re.compile(r"\s*keysize:\s+512\s+bits\s*")
key_size_pattern = re.compile(r"\s*keysize:\s+512\s+\[?bits\]?\s*")
if not any(key_size_pattern.fullmatch(line) for line in results):
raise Exception ("swap device encryption does not use the key size specified in the configuration")
'';