diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-01-06 22:53:27 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-01-06 22:53:27 +0000 |
commit | 381a38f5febec6d6e31c0207f78703ae28deec84 (patch) | |
tree | e383b64ef44d6b01239ebbb3653e57eb55b4245d /tests/installer.nix | |
parent | ed7d09662471d32f86eac72215a0b3c58031f026 (diff) | |
download | nixpkgs-381a38f5febec6d6e31c0207f78703ae28deec84.tar nixpkgs-381a38f5febec6d6e31c0207f78703ae28deec84.tar.gz nixpkgs-381a38f5febec6d6e31c0207f78703ae28deec84.tar.bz2 nixpkgs-381a38f5febec6d6e31c0207f78703ae28deec84.tar.lz nixpkgs-381a38f5febec6d6e31c0207f78703ae28deec84.tar.xz nixpkgs-381a38f5febec6d6e31c0207f78703ae28deec84.tar.zst nixpkgs-381a38f5febec6d6e31c0207f78703ae28deec84.zip |
* 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
Diffstat (limited to 'tests/installer.nix')
-rw-r--r-- | tests/installer.nix | 10 |
1 files 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; ''; } |