test_status_led.py 358 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
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'))