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
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'))
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