From 381a38f5febec6d6e31c0207f78703ae28deec84 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 6 Jan 2010 22:53:27 +0000 Subject: [PATCH] * Do a nixos-rebuild in the installed machine and then reboot again to see if the system still boots. svn path=/nixos/trunk/; revision=19279 --- tests/installer.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/installer.nix b/tests/installer.nix index 115f7a82a46..ec1a39602ce 100644 --- a/tests/installer.nix +++ b/tests/installer.nix @@ -109,13 +109,19 @@ rec { $machine->mustSucceed("echo hello"); - $machine->mustSucceed("nix-env -i coreutils"); + $machine->mustSucceed("nix-env -i coreutils >&2"); $machine->mustSucceed("type -tP ls") =~ /profiles/ or die "nix-env failed"; - #$machine->mustSucceed("nixos-rebuild switch >&2"); + $machine->mustSucceed("nixos-rebuild switch >&2"); $machine->shutdown; + + # And just to be sure, check that the machine still boots after + # "nixos-rebuild switch". + my $machine = Machine->new({ hda => "harddisk" }); + $machine->mustSucceed("echo hello"); + $machine->shutdown; ''; }