diff options
author | Nick Cao <nickcao@nichi.co> | 2022-11-24 09:57:33 +0800 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2022-11-24 10:02:20 +0800 |
commit | 7d2faad3b747b7c3d294bbdd2d367e1436782a26 (patch) | |
tree | d4915b688153ca092053cc546e30d0daaa80f757 /nixos/tests/stratis | |
parent | ed71b75ee887da93e8f9cc7314986b5bc058f20d (diff) |
nixos/stratis: update tests to use new features
Diffstat (limited to 'nixos/tests/stratis')
-rw-r--r-- | nixos/tests/stratis/encryption.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/tests/stratis/encryption.nix b/nixos/tests/stratis/encryption.nix index 3faa3171843f7..a555ff8a8e854 100644 --- a/nixos/tests/stratis/encryption.nix +++ b/nixos/tests/stratis/encryption.nix @@ -26,8 +26,7 @@ import ../make-test-python.nix ({ pkgs, ... }: # test rebinding encrypted pool machine.succeed("stratis pool rebind keyring testpool testkey2") # test restarting encrypted pool - uuid = machine.succeed("stratis pool list | grep -oE '[0-9a-fA-F-]{36}'").rstrip('\n') - machine.succeed(" stratis pool stop testpool") - machine.succeed(f"stratis pool start {uuid} --unlock-method keyring") + machine.succeed("stratis pool stop testpool") + machine.succeed("stratis pool start --name testpool --unlock-method keyring") ''; }) |