Skip to content

Commit

Permalink
'Fix' the test
Browse files Browse the repository at this point in the history
  • Loading branch information
hustlerone committed Dec 7, 2024
1 parent 0b9215e commit d82855f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nixos/tests/systemd-initrd-luks-unl0kr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ in {
boot.loader.systemd-boot.enable = true;

boot.initrd.availableKernelModules = [
"evdev" # for entering pw
"bochs"
];

Expand All @@ -33,6 +32,8 @@ in {
};
unl0kr.enable = true;
};

networking.dhcpcd.enable = false;

specialisation.boot-luks.configuration = {
boot.initrd.luks.devices = lib.mkVMOverride {
Expand Down Expand Up @@ -62,11 +63,14 @@ in {
# Boot and decrypt the disk
machine.start()
machine.wait_for_text("Password required for booting")
machine.wait_for_text("password") # We only care for the word "password"
machine.screenshot("prompt")
machine.send_chars("${passphrase}")
machine.send_chars("${passphrase}") # Comcast speeds LMAO
machine.screenshot("pw")
machine.send_chars("\n")
# Why can't you work like you're supposed to? I don't have all day to spend waiting for you to take two screenshots and type the most trivial password ever
machine.wait_for_unit("multi-user.target")
assert "/dev/mapper/cryptroot on / type ext4" in machine.succeed("mount"), "/dev/mapper/cryptroot do not appear in mountpoints list"
Expand Down

0 comments on commit d82855f

Please sign in to comment.