1
0
Fork 1
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:
Florian Klink 2020-08-23 10:45:19 +02:00 committed by GitHub
commit adc5918e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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