aboutsummaryrefslogtreecommitdiffstats
path: root/nix/test.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 06:05:30 +0000
committertv <tv@krebsco.de>2026-12-01 13:21:22 +0100
commit34ac5dbc20be127a3d6b332687efcc4816fbe70f (patch)
tree1b0b6ff3d3d76df5c8e12e228c59c500661d50b1 /nix/test.nix
parent5fb90d63fefe2566a24c9a5e45354198115986e9 (diff)
nix: the check before a switch runs for boot, too
A generation whose required slots the state can't fill doesn't become the next boot's default either: tools like Clan run switch-to-configuration boot before switch, so the check refused only once the generation was the boot default already. Staging a generation for a later reboot works by a submission waiting in incomingDir, which the check plans. dry-activate stays unchecked. A line of the VM test (not run).
Diffstat (limited to 'nix/test.nix')
-rw-r--r--nix/test.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nix/test.nix b/nix/test.nix
index 4a37ff3..6427073 100644
--- a/nix/test.nix
+++ b/nix/test.nix
@@ -116,8 +116,10 @@ pkgs.testers.runNixOSTest {
machine.succeed("/run/booted-system/bin/switch-to-configuration test")
seen("tinc.key L")
- with subtest("a switch to a type the state can't fill is refused before switching"):
+ with subtest("a switch to a type the state can't fill is refused before switching, and for boot"):
machine.fail("/run/booted-system/specialisation/retyped/bin/switch-to-configuration test")
+ # Nor does it become the next boot's default.
+ machine.fail("/run/booted-system/specialisation/retyped/bin/switch-to-configuration boot")
machine.succeed("enstate --status | grep -q 'filled tinc.key'")
with subtest("a generation that adds a required slot: staged with its own enstate, then switched to"):