From cd986a2a8ee289efebda386b540f580ab1fa1794 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Tue, 27 Jan 2026 16:29:28 +0100 Subject: [PATCH] nixos/tests/transmission: convert to runTest See https://github.com/NixOS/nixpkgs/issues/386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/transmission.nix | 43 ++++++++++++++++++------------------ 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 2b538a450c2f..282835431246 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -1630,7 +1630,7 @@ in traefik = runTestOn [ "aarch64-linux" "x86_64-linux" ] ./traefik.nix; trafficserver = runTest ./trafficserver.nix; transfer-sh = runTest ./transfer-sh.nix; - transmission_4 = handleTest ./transmission.nix { }; + transmission_4 = runTest ./transmission.nix; trezord = runTest ./trezord.nix; trickster = runTest ./trickster.nix; trilium-server = runTestOn [ "x86_64-linux" ] ./trilium-server.nix; diff --git a/nixos/tests/transmission.nix b/nixos/tests/transmission.nix index 5186098b40cc..406b0df8599d 100644 --- a/nixos/tests/transmission.nix +++ b/nixos/tests/transmission.nix @@ -1,27 +1,28 @@ -import ./make-test-python.nix ( - { pkgs, ... }: - { - name = "transmission"; - meta = with pkgs.lib.maintainers; { - maintainers = [ coconnor ]; +{ pkgs, ... }: +{ + name = "transmission"; + meta = with pkgs.lib.maintainers; { + maintainers = [ coconnor ]; + }; + + nodes.machine = + { ... }: + { + imports = [ ../modules/profiles/minimal.nix ]; + + networking.firewall.allowedTCPPorts = [ 9091 ]; + + security.apparmor.enable = true; + + services.transmission.enable = true; }; - nodes.machine = - { ... }: - { - imports = [ ../modules/profiles/minimal.nix ]; - - networking.firewall.allowedTCPPorts = [ 9091 ]; - - security.apparmor.enable = true; - - services.transmission.enable = true; - }; - - testScript = '' + testScript = + { nodes, ... }: + #python + '' start_all() machine.wait_for_unit("transmission") machine.shutdown() ''; - } -) +}