3
0
Fork 0
forked from mirrors/nixpkgs

nixos/containers: Add regression test for #40355

(cherry picked from commit 0668906e84)
This commit is contained in:
Arian van Putten 2018-10-05 16:13:42 +02:00 committed by Samuel Dionne-Riel
parent cf9b801b60
commit 1ada6fcde1

View file

@ -86,6 +86,9 @@ import ./make-test.nix ({ pkgs, ...} : {
# Execute commands via the root shell.
$machine->succeed("nixos-container run $id1 -- uname") =~ /Linux/ or die;
# Execute a nix command via the root shell. (regression test for #40355)
$machine->succeed("nixos-container run $id1 -- nix-instantiate -E 'derivation { name = \"empty\"; builder = \"false\"; system = \"false\"; }'");
# Stop and start (regression test for #4989)
$machine->succeed("nixos-container stop $id1");
$machine->succeed("nixos-container start $id1");