Commit 17cb476b authored by Guido Gunther's avatar Guido Gunther
Browse files

pytests: Make sound card names match upstream

Note that the devkit rename isn't submitted upstream yet.
parent 07791b0c
Pipeline #64560 passed with stages
in 5 minutes and 19 seconds
......@@ -16,14 +16,14 @@ def tempdir():
def test_sgtl5000():
"Check if the sgtl5000 audio codec is there"
out = subprocess.check_output(["aplay", "-l"])
assert b"[sgtl5000]" in out
assert b"[Librem 5 Devkit]" in out
@pytest.mark.skipif(not boardtype.is_librem5(), reason="Not a phone")
def test_wm8962():
"Check if the audio codec is there"
out = subprocess.check_output(["aplay", "-l"])
assert b"[wm8962]" in out
assert b"[Librem 5]" in out
def test_codec_and_modem_cards_exist():
......@@ -42,7 +42,7 @@ def test_sound_output(tempdir):
if boardtype.is_librem5():
output = 'wm8962'
else:
output = 'sgtl5000'
output = 'Devkit'
out = subprocess.run(["alsabat",
"-D",
"plughw:CARD={},DEV=0".format(output),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment