Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Angus Ainslie
librem5-devkit-tools
Commits
be32ccd2
Commit
be32ccd2
authored
Jan 11, 2021
by
Guido Gunther
Committed by
Angus Ainslie
Jan 17, 2021
Browse files
pt/test_panel_brightness: Reduce devkit brightness to 100
The '+1' is added in the assert itself now.
parent
79440928
Changes
1
Show whitespace changes
Inline
Side-by-side
pytests/test_panel_brightness.py
View file @
be32ccd2
...
...
@@ -5,9 +5,6 @@ from . import boardtype
def
test_panel_brightness
():
"Check if panel brighness range"
path
=
"/sys/class/backlight/backlight-dsi"
if
boardtype
.
is_librem5
():
upper
=
228
else
:
upper
=
101
upper
=
228
if
boardtype
.
is_librem5
()
else
100
f
=
open
(
os
.
path
.
join
(
path
,
'brightness'
))
assert
int
(
f
.
read
())
in
range
(
0
,
upper
+
1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment