add check for mpv version

This commit is contained in:
sentriz
2022-11-16 19:36:14 +00:00
committed by Senan Kelly
parent e1488b0d18
commit 44800e964d
2 changed files with 29 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package jukebox_test
import (
"errors"
"os"
"path/filepath"
"sort"
@@ -18,6 +19,9 @@ func newJukebox(t *testing.T) *jukebox.Jukebox {
sockPath,
[]string{jukebox.MPVArg("--ao", "null")},
)
if errors.Is(err, jukebox.ErrMPVTooOld) {
t.Skip("old mpv found, skipping")
}
if err != nil {
t.Fatalf("start jukebox: %v", err)
}