Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Angus Ainslie
librem5-devkit-tools
Commits
257093dc
Commit
257093dc
authored
Nov 03, 2020
by
Martin Kepplinger
Committed by
Guido Gunther
Nov 03, 2020
Browse files
pytests: test_audio: check existence of both modem and codec cards
parent
38744271
Changes
1
Show whitespace changes
Inline
Side-by-side
pytests/test_audio.py
View file @
257093dc
...
@@ -26,6 +26,11 @@ def test_wm8962():
...
@@ -26,6 +26,11 @@ def test_wm8962():
assert
b
"[wm8962]"
in
out
assert
b
"[wm8962]"
in
out
def
test_codec_and_modem_cards_exist
():
assert
(
os
.
path
.
exists
(
'/sys/class/sound/card0'
))
assert
(
os
.
path
.
exists
(
'/sys/class/sound/card1'
))
def
test_headphone_detection
():
def
test_headphone_detection
():
"Check if we registered the headphone detection IRQ"
"Check if we registered the headphone detection IRQ"
f
=
open
(
"/proc/interrupts"
)
f
=
open
(
"/proc/interrupts"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment