mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/tests: fix swap-random-encryption
It parses cryptsetup cli output and the format changed.
This commit is contained in:
parent
a7fc11be66
commit
0dadfcda39
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue