about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorRyan Lahfa <masterancpp@gmail.com>2023-11-17 18:07:10 +0100
committerGitHub <noreply@github.com>2023-11-17 18:07:10 +0100
commit65481ecfef4dda8f8248e0428ac8c41f66cb32fc (patch)
treece7b98ecfe62ea00f07e20cf5eed0f3a2c5e170b /nixos/tests
parentccfe07c3168109567b98462533f7ddf14c7ba18d (diff)
parent81e378618e3f201e1d55abcbd920fdca394c21a5 (diff)
Merge pull request #267985 from JulienMalka/absent-bootspec
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/systemd-boot.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/tests/systemd-boot.nix b/nixos/tests/systemd-boot.nix
index 13007d0d80d84..a592504addc03 100644
--- a/nixos/tests/systemd-boot.nix
+++ b/nixos/tests/systemd-boot.nix
@@ -277,4 +277,20 @@ in
       machine.wait_for_unit("multi-user.target")
     '';
   };
+
+  no-bootspec = makeTest
+    {
+      name = "systemd-boot-no-bootspec";
+      meta.maintainers = with pkgs.lib.maintainers; [ julienmalka ];
+
+      nodes.machine = {
+        imports = [ common ];
+        boot.bootspec.enable = false;
+      };
+
+      testScript = ''
+        machine.start()
+        machine.wait_for_unit("multi-user.target")
+      '';
+    };
 }