Commit 6dd2465d authored by Angus Ainslie's avatar Angus Ainslie
Browse files

pytests/test_audio.py: fix the phone headphone detect



The headphone detect changed names on the phone
Signed-off-by: default avatarAngus Ainslie <angus@akkea.ca>
parent bc1e8953
......@@ -34,7 +34,10 @@ def test_codec_and_modem_cards_exist():
def test_headphone_detection():
"Check if we registered the headphone detection IRQ"
f = open("/proc/interrupts")
assert " HP_DET" in f.read()
if boardtype.is_librem5():
assert "Headphone detection" in f.read()
else:
assert " HP_DET" in f.read()
def test_sound_output(tempdir):
......
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