Skip to content
Snippets Groups Projects
Commit 963247fa authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

pytests: add basic test for the torch

parent 0aaebe5d
No related branches found
No related tags found
1 merge request!173pytests: add basic test for the torch
Pipeline #60403 passed
from . import boardtype
import os
import pytest
@pytest.mark.skipif(not boardtype.is_librem5(), reason="Not a phone")
def test_torch_exists():
assert(os.path.exists('/sys/class/leds/white:torch/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