* 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
This commit is contained in:
Eelco Dolstra 2010-01-06 22:53:27 +00:00
parent ed7d096624
commit 381a38f5fe

View file

@ -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;
'';
}