nixos/tests/transmission: convert to runTest

See https://github.com/NixOS/nixpkgs/issues/386873
This commit is contained in:
r-vdp
2026-01-27 16:29:28 +01:00
parent 6003a562ab
commit cd986a2a8e
2 changed files with 23 additions and 22 deletions

View File

@@ -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;

View File

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