From 35925d7a768a951809a6bb4aa0004f3fcb0139ed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 May 2014 11:04:45 +0200 Subject: [PATCH] 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 --- nixos/tests/installer.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index 9149b1bff02f..bc3a757ad54e 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -161,10 +161,10 @@ let "/mnt/etc/nixos/configuration.nix"); # Perform the installation. - $machine->succeed("nixos-install >&2"); + $machine->succeed("nixos-install < /dev/null >&2"); # 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");