Commit a761838c authored by schnusch's avatar schnusch
Browse files

nixosTests.mpv: ensure /etc/mpv/mpv.conf is loaded

parent 03282f21
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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}")