From 87b49397bf1e26ac17c4a55fed41bd836fefc39d Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Tue, 12 Apr 2016 17:24:45 +0300 Subject: installer tests: Use different package for testing `nix-env -iA` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coreutils is multi-output and the `info` output doesn't seem to be included on the install disk, failing like this (because now nix-env wants to build coreutils): ```` machine# these derivations will be built: machine# /nix/store/0jk4wzg11sa6cqyw8g7w5lb35axji969-bison-3.0.4.tar.gz.drv ... machine# /nix/store/ybjgqwxx63l8cj1s7b8axx09wz06kxbv-coreutils-8.25.drv machine# building path(s) ‘/nix/store/4xvdi5740vq8vlsi48lik3saz0v5jsx0-coreutils-8.25.tar.xz’ machine# downloading ‘http://ftpmirror.gnu.org/coreutils/coreutils-8.25.tar.xz’... machine# error: unable to download ‘http://ftpmirror.gnu.org/coreutils/coreutils-8.25.tar.xz’: Couldn't resolve host name (6) machine# builder for ‘/nix/store/5j3bc5sjr6271fnjh9gk9hrid8kgbpx3-coreutils-8.25.tar.xz.drv’ failed with exit code 1 machine# cannot build derivation ‘/nix/store/ybjgqwxx63l8cj1s7b8axx09wz06kxbv-coreutils-8.25.drv’: 1 dependencies couldn't be built machine# error: build of ‘/nix/store/ybjgqwxx63l8cj1s7b8axx09wz06kxbv-coreutils-8.25.drv’ failed ```` --- nixos/tests/installer.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos/tests') diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index 05c3f267eb93..48d5fecad921 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -108,8 +108,8 @@ let $machine->waitUntilSucceeds("cat /proc/swaps | grep -q /dev"); # Check whether the channel works. - $machine->succeed("nix-env -iA nixos.coreutils >&2"); - $machine->succeed("type -tP ls | tee /dev/stderr") =~ /.nix-profile/ + $machine->succeed("nix-env -iA nixos.procps >&2"); + $machine->succeed("type -tP ps | tee /dev/stderr") =~ /.nix-profile/ or die "nix-env failed"; # We need to a writable nix-store on next boot. -- cgit 1.4.1