Unverified Commit 41f231f5 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

parents d1392083 0dadfcda
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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")
  '';