diff options
author | Raito Bezarius | 2023-03-26 00:44:41 +0100 |
---|---|---|
committer | Raito Bezarius | 2023-04-21 13:00:19 +0200 |
commit | e3a41f3fec8ddfc9e20df2e10f49c464525defa3 (patch) | |
tree | 5877b570f22fa1eb637dc49530804c35d6916fdd | |
parent | 58f4c3944db804bd28d35ceb4687961683052a91 (diff) |
nixos/tests/bootspec: assert for boot.json rather than bootspec/boot.json
-rw-r--r-- | nixos/tests/bootspec.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/bootspec.nix b/nixos/tests/bootspec.nix index 077dff918e0d..f388a15ffa2d 100644 --- a/nixos/tests/bootspec.nix +++ b/nixos/tests/bootspec.nix @@ -108,9 +108,9 @@ in machine.start() machine.wait_for_unit("multi-user.target") - machine.succeed("test -e /run/current-system/bootspec/boot.json") + machine.succeed("test -e /run/current-system/boot.json") - bootspec = json.loads(machine.succeed("jq -r '.v1' /run/current-system/bootspec/boot.json")) + bootspec = json.loads(machine.succeed("jq -r '.v1' /run/current-system/boot.json")) assert all(key in bootspec for key in ('initrd', 'initrdSecrets')), "Bootspec should contain initrd or initrdSecrets field when initrd is enabled" ''; |