Skip to content
Snippets Groups Projects
Unverified Commit b33acd80 authored by Luca Weiss's avatar Luca Weiss
Browse files

ci: add sanity check for matrix capabilities

parent 5ac3d5f5
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3
import openrazer.client
devmgr = openrazer.client.DeviceManager()
for d in devmgr.devices:
# Sanity check matrix capabilities
if d.has("lighting_led_matrix"):
d.fx.advanced.matrix[0, 0] = [0, 255, 0]
try:
d.fx.advanced.draw()
except Exception as e:
print('\n~~~ ' + d.name + ' ~~~\n')
print(e)
...@@ -11,3 +11,5 @@ if [ "$all_devices" != "$daemon_devices" ]; then ...@@ -11,3 +11,5 @@ if [ "$all_devices" != "$daemon_devices" ]; then
echo echo
exit 1 exit 1
fi fi
PYTHONPATH="pylib:daemon" python3 scripts/ci/test-daemon.py
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