diff --git a/pytests/test_torch.py b/pytests/test_torch.py new file mode 100644 index 0000000000000000000000000000000000000000..8f012ebf0ce617c66bdddab1c0c8a085b7e09dcf --- /dev/null +++ b/pytests/test_torch.py @@ -0,0 +1,9 @@ +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'))