From 0dadfcda394976839e19b12dc78c9926b0c7aff3 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Sun, 2 Nov 2025 21:48:05 -0600 Subject: [PATCH] nixos/tests: fix swap-random-encryption It parses cryptsetup cli output and the format changed. --- nixos/tests/swap-random-encryption.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/swap-random-encryption.nix b/nixos/tests/swap-random-encryption.nix index 0b88c21654ca..80601e89d108 100644 --- a/nixos/tests/swap-random-encryption.nix +++ b/nixos/tests/swap-random-encryption.nix @@ -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") '';