nixos/mpd: fix not properly testing for songs to be in the playlist

This commit is contained in:
Jonas Grosse-Holz 2020-09-08 15:40:45 +02:00
parent c59ea8b8a0
commit 781d2c2f1e

View File

@ -105,7 +105,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
for track in tracks.splitlines():
server.succeed(f"{mpc} add {track}")
_, added_tracks = server.execute(f"{mpc} listall")
_, added_tracks = server.execute(f"{mpc} playlist")
# Check we succeeded adding audio tracks to the playlist
assert len(added_tracks.splitlines()) > 0