nixosTests.mpv: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-02 17:26:41 +02:00
parent c241eb319f
commit 244d31d15a
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 24 additions and 26 deletions

View file

@ -805,7 +805,7 @@ in
moosefs = handleTest ./moosefs.nix { }; moosefs = handleTest ./moosefs.nix { };
movim = discoverTests (import ./web-apps/movim { inherit handleTestOn; }); movim = discoverTests (import ./web-apps/movim { inherit handleTestOn; });
mpd = handleTest ./mpd.nix { }; mpd = handleTest ./mpd.nix { };
mpv = handleTest ./mpv.nix { }; mpv = runTest ./mpv.nix;
mtp = handleTest ./mtp.nix { }; mtp = handleTest ./mtp.nix { };
multipass = handleTest ./multipass.nix { }; multipass = handleTest ./multipass.nix { };
mumble = handleTest ./mumble.nix { }; mumble = handleTest ./mumble.nix { };

View file

@ -1,10 +1,9 @@
import ./make-test-python.nix ( { lib, ... }:
{ lib, ... }:
let let
port = toString 4321; port = toString 4321;
in in
{ {
name = "mpv"; name = "mpv";
meta.maintainers = with lib.maintainers; [ zopieux ]; meta.maintainers = with lib.maintainers; [ zopieux ];
@ -24,5 +23,4 @@ import ./make-test-python.nix (
machine.wait_for_open_port(${port}) machine.wait_for_open_port(${port})
assert "<title>simple-mpv-webui" in machine.succeed("curl -s localhost:${port}") assert "<title>simple-mpv-webui" in machine.succeed("curl -s localhost:${port}")
''; '';
} }
)