nixosTests.docker-tools: handleTest -> runTest

This commit is contained in:
Sizhe Zhao
2025-06-07 21:00:38 +08:00
parent 9880867c45
commit ea619766ea
2 changed files with 589 additions and 591 deletions

View File

@@ -414,7 +414,7 @@ in
docker = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./docker.nix; docker = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./docker.nix;
docker-rootless = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./docker-rootless.nix; docker-rootless = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./docker-rootless.nix;
docker-registry = runTest ./docker-registry.nix; docker-registry = runTest ./docker-registry.nix;
docker-tools = handleTestOn [ "x86_64-linux" ] ./docker-tools.nix { }; docker-tools = runTestOn [ "x86_64-linux" ] ./docker-tools.nix;
docker-tools-nix-shell = runTest ./docker-tools-nix-shell.nix; docker-tools-nix-shell = runTest ./docker-tools-nix-shell.nix;
docker-tools-cross = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./docker-tools-cross.nix; docker-tools-cross = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./docker-tools-cross.nix;
docker-tools-overlay = runTestOn [ "x86_64-linux" ] ./docker-tools-overlay.nix; docker-tools-overlay = runTestOn [ "x86_64-linux" ] ./docker-tools-overlay.nix;

View File

@@ -1,6 +1,5 @@
# this test creates a simple GNU image with docker tools and sees if it executes # this test creates a simple GNU image with docker tools and sees if it executes
import ./make-test-python.nix (
{ pkgs, ... }: { pkgs, ... }:
let let
# nixpkgs#214434: dockerTools.buildImage fails to unpack base images # nixpkgs#214434: dockerTools.buildImage fails to unpack base images
@@ -601,4 +600,3 @@ import ./make-test-python.nix (
) )
''; '';
} }
)