nixosTests.docker: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-02 14:37:58 +02:00
parent 2f176b5def
commit d175fc3af4
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 48 additions and 51 deletions

View file

@ -369,7 +369,7 @@ in
dnscrypt-proxy2 = handleTestOn [ "x86_64-linux" ] ./dnscrypt-proxy2.nix { };
dnsdist = import ./dnsdist.nix { inherit pkgs runTest; };
doas = runTest ./doas.nix;
docker = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./docker.nix { };
docker = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./docker.nix;
docker-rootless = handleTestOn [ "aarch64-linux" "x86_64-linux" ] ./docker-rootless.nix { };
docker-registry = handleTest ./docker-registry.nix { };
docker-tools = handleTestOn [ "x86_64-linux" ] ./docker-tools.nix { };

View file

@ -1,6 +1,4 @@
# This test runs docker and checks if simple container starts
import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "docker";
@ -56,4 +54,3 @@ import ./make-test-python.nix (
docker.succeed("grep 1 /proc/sys/net/ipv4/conf/default/forwarding")
'';
}
)