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
6cc65c7c
Commit
6cc65c7c
authored
Nov 02, 2020
by
Martin Kepplinger
Committed by
Guido Gunther
Nov 02, 2020
Browse files
pytests: add basic test for the status led
parent
61461666
Changes
1
Show whitespace changes
Inline
Side-by-side
pytests/test_status_led.py
0 → 100644
View file @
6cc65c7c
from
.
import
boardtype
import
os
import
pytest
@
pytest
.
mark
.
skipif
(
not
boardtype
.
is_librem5
(),
reason
=
"Not a phone"
)
def
test_status_led_exists
():
assert
(
os
.
path
.
exists
(
'/sys/class/leds/red:status/brightness'
))
assert
(
os
.
path
.
exists
(
'/sys/class/leds/green:status/brightness'
))
assert
(
os
.
path
.
exists
(
'/sys/class/leds/blue:status/brightness'
))
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