nixosTests.docker-rootless: migrate to runTestOn

Part of #386873
This commit is contained in:
Piotr Kwiecinski
2025-04-02 14:49:24 +02:00
parent d175fc3af4
commit 852f3beab8
2 changed files with 42 additions and 45 deletions

View File

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

View File

@@ -1,8 +1,6 @@
# This test runs docker and checks if simple container starts
import ./make-test-python.nix (
{ lib, pkgs, ... }:
{
{ lib, pkgs, ... }:
{
name = "docker-rootless";
meta = with pkgs.lib.maintainers; {
maintainers = [ abbradar ];
@@ -47,5 +45,4 @@ import ./make-test-python.nix (
machine.succeed("${sudo} docker ps | grep sleeping")
machine.succeed("${sudo} docker stop sleeping")
'';
}
)
}