nixosTests.beanstalkd: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-01 23:13:43 +02:00
parent 28a81fbea8
commit dc3df2d066
No known key found for this signature in database
GPG Key ID: EC0DE1CB9D5258B4
2 changed files with 40 additions and 42 deletions

View File

@ -228,7 +228,7 @@ in
babeld = runTest ./babeld.nix; babeld = runTest ./babeld.nix;
bazarr = runTest ./bazarr.nix; bazarr = runTest ./bazarr.nix;
bcachefs = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./bcachefs.nix; bcachefs = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./bcachefs.nix;
beanstalkd = handleTest ./beanstalkd.nix { }; beanstalkd = runTest ./beanstalkd.nix;
bees = handleTest ./bees.nix { }; bees = handleTest ./bees.nix { };
benchexec = handleTest ./benchexec.nix { }; benchexec = handleTest ./benchexec.nix { };
binary-cache = handleTest ./binary-cache.nix { compression = "zstd"; }; binary-cache = handleTest ./binary-cache.nix { compression = "zstd"; };

View File

@ -1,7 +1,6 @@
import ./make-test-python.nix ( { pkgs, lib, ... }:
{ pkgs, lib, ... }:
let let
pythonEnv = pkgs.python3.withPackages (p: [ p.beanstalkc ]); pythonEnv = pkgs.python3.withPackages (p: [ p.beanstalkc ]);
produce = pkgs.writeScript "produce.py" '' produce = pkgs.writeScript "produce.py" ''
@ -24,8 +23,8 @@ import ./make-test-python.nix (
job.delete() job.delete()
''; '';
in in
{ {
name = "beanstalkd"; name = "beanstalkd";
meta.maintainers = [ lib.maintainers.aanderse ]; meta.maintainers = [ lib.maintainers.aanderse ];
@ -48,5 +47,4 @@ import ./make-test-python.nix (
"${consume}" "${consume}"
) )
''; '';
} }
)