about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-03-26 00:44:41 +0100
committerRaito Bezarius <masterancpp@gmail.com>2023-04-21 13:00:19 +0200
commite3a41f3fec8ddfc9e20df2e10f49c464525defa3 (patch)
tree5877b570f22fa1eb637dc49530804c35d6916fdd /nixos/tests
parent58f4c3944db804bd28d35ceb4687961683052a91 (diff)
nixos/tests/bootspec: assert for boot.json rather than bootspec/boot.json
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/bootspec.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/bootspec.nix b/nixos/tests/bootspec.nix
index 077dff918e0d2..f388a15ffa2d7 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"
     '';