nixos/tests/snapcast: migrate to runTest

Part of #386873
This commit is contained in:
Martin Weinelt 2025-03-10 20:20:04 +01:00
parent 9b7b22afa1
commit 6919956d08
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 80 additions and 79 deletions

View file

@ -1036,7 +1036,7 @@ in {
slurm = handleTest ./slurm.nix {};
snmpd = handleTest ./snmpd.nix {};
smokeping = handleTest ./smokeping.nix {};
snapcast = handleTest ./snapcast.nix {};
snapcast = runTest ./snapcast.nix;
snapper = handleTest ./snapper.nix {};
snipe-it = runTest ./web-apps/snipe-it.nix;
soapui = handleTest ./soapui.nix {};

View file

@ -1,14 +1,16 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{
pkgs,
...
}:
let
let
port = 10004;
tcpPort = 10005;
httpPort = 10080;
tcpStreamPort = 10006;
bufferSize = 742;
in
{
in
{
name = "snapcast";
meta = with pkgs.lib.maintainers; {
maintainers = [ hexa ];
@ -89,5 +91,4 @@ import ./make-test-python.nix (
)
client.wait_until_succeeds("journalctl -o cat -u snapcast-client | grep -q 'buffer: ${toString bufferSize}'")
'';
}
)
}