nixosTests.aria2: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt 2025-03-13 23:36:28 +01:00
parent f13c50690f
commit 67d315ebd4
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 48 additions and 50 deletions

View file

@ -175,7 +175,7 @@ in {
appliance-repart-image-verity-store = runTest ./appliance-repart-image-verity-store.nix; appliance-repart-image-verity-store = runTest ./appliance-repart-image-verity-store.nix;
apparmor = runTest ./apparmor; apparmor = runTest ./apparmor;
archi = runTest ./archi.nix; archi = runTest ./archi.nix;
aria2 = handleTest ./aria2.nix {}; aria2 = runTest ./aria2.nix;
armagetronad = handleTest ./armagetronad.nix {}; armagetronad = handleTest ./armagetronad.nix {};
artalk = runTest ./artalk.nix; artalk = runTest ./artalk.nix;
atd = handleTest ./atd.nix {}; atd = handleTest ./atd.nix {};

View file

@ -1,6 +1,5 @@
import ./make-test-python.nix ( { pkgs, ... }:
{ pkgs, ... }: let
let
rpcSecret = "supersecret"; rpcSecret = "supersecret";
rpc-listen-port = 6800; rpc-listen-port = 6800;
curlBody = { curlBody = {
@ -9,8 +8,8 @@ import ./make-test-python.nix (
method = "aria2.getVersion"; method = "aria2.getVersion";
params = [ "token:${rpcSecret}" ]; params = [ "token:${rpcSecret}" ];
}; };
in in
rec { {
name = "aria2"; name = "aria2";
nodes.machine = { nodes.machine = {
@ -50,5 +49,4 @@ import ./make-test-python.nix (
''; '';
meta.maintainers = [ pkgs.lib.maintainers.timhae ]; meta.maintainers = [ pkgs.lib.maintainers.timhae ];
} }
)