Skip to content
Snippets Groups Projects
Commit 6cc65c7c authored by Martin Kepplinger's avatar Martin Kepplinger Committed by Guido Gunther
Browse files

pytests: add basic test for the status led

parent 61461666
No related branches found
No related tags found
No related merge requests found
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'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment