3
0
Fork 0
forked from mirrors/nixpkgs

Fix installer test

The installer now asks the user to set a root password if stdin is a
tty, which doesn't work for an interactive test.

http://hydra.nixos.org/build/11130072
This commit is contained in:
Eelco Dolstra 2014-05-21 11:04:45 +02:00
parent e5eed8f664
commit 35925d7a76

View file

@ -161,10 +161,10 @@ let
"/mnt/etc/nixos/configuration.nix"); "/mnt/etc/nixos/configuration.nix");
# Perform the installation. # Perform the installation.
$machine->succeed("nixos-install >&2"); $machine->succeed("nixos-install < /dev/null >&2");
# Do it again to make sure it's idempotent. # Do it again to make sure it's idempotent.
$machine->succeed("nixos-install >&2"); $machine->succeed("nixos-install < /dev/null >&2");
$machine->succeed("umount /mnt/boot || true"); $machine->succeed("umount /mnt/boot || true");
$machine->succeed("umount /mnt"); $machine->succeed("umount /mnt");