mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixosTests.mpv: ensure /etc/mpv/mpv.conf is loaded
This commit is contained in:
parent
03282f2155
commit
a761838c48
1 changed files with 5 additions and 0 deletions
|
|
@ -16,9 +16,14 @@ in
|
|||
scripts = [ pkgs.mpvScripts.simple-mpv-webui ];
|
||||
})
|
||||
];
|
||||
|
||||
environment.etc."mpv/mpv.conf".text = ''
|
||||
[nixos-test-profile]
|
||||
'';
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.succeed("mpv --profile=help | grep -F nixos-test-profile")
|
||||
machine.execute("set -m; mpv --script-opts=webui-port=${port} --idle=yes >&2 &")
|
||||
machine.wait_for_open_port(${port})
|
||||
assert "<title>simple-mpv-webui" in machine.succeed("curl -s localhost:${port}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue