Skip to content

backend/native: Don't warn on EACCES if headless

Simon McVittie requested to merge wip/smcv/dev-dri-access into main

Since commit 1bf70334 "tests/runner: Make test runner use the headless backend", tests are run with the native backend in headless mode, which will attempt to open each GPU and show a warning (fatal during tests) if it cannot.

However, in headless mode we might not be logged in on any seat (for example we might be logged in via ssh instead), which means we might legitimately not have permission to use any GPUs, even if they exist. Downgrade the warning to a debug message in this case.

Resolves: #2381 (closed)

Merge request reports