mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
Merge pull request #80051 from tfc/port-docker-preloader-test
nixosTests.docker-preloader: Port to Python
This commit is contained in:
commit
adc5918e83
|
@ -1,7 +1,8 @@
|
|||
import ./make-test.nix ({ pkgs, ...} : {
|
||||
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||
name = "docker-preloader";
|
||||
meta = with pkgs.stdenv.lib.maintainers; {
|
||||
maintainers = [ lewo ];
|
||||
broken = true; # fails with "read-only file system" error
|
||||
};
|
||||
|
||||
nodes = {
|
||||
|
@ -18,10 +19,10 @@ import ./make-test.nix ({ pkgs, ...} : {
|
|||
};
|
||||
};
|
||||
testScript = ''
|
||||
startAll;
|
||||
start_all()
|
||||
|
||||
$docker->waitForUnit("sockets.target");
|
||||
$docker->succeed("docker run nix nix-store --version");
|
||||
$docker->succeed("docker run bash bash --version");
|
||||
docker.wait_for_unit("sockets.target")
|
||||
docker.succeed("docker run nix nix-store --version")
|
||||
docker.succeed("docker run bash bash --version")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue