Tests that open the Face unlock window or the face auth view turned the fill light on: they read
the real /sys/class/backlight, set 90 % and restored it on close, and since the sysfs file is
root-owned the write went to logind's SetBrightness over the real system bus. With tests in
parallel the screen flickered between levels, and an aborted test left it at 90 %.
- The backlight root comes from CHANDRA_BACKLIGHT_ROOT when set (default_backlight_root);
test-native.py gives every test its own fake intel_backlight (25 of 100).
- Under CHANDRA_TEST_CONFIG=1 the logind SetBrightness fallback is never spawned.
- test-native.py drops XDG_SESSION_ID and points DBUS_SYSTEM_BUS_ADDRESS nowhere; tests that
want a system bus give their own.
- Tests that set a fake root put the default back, not the real /sys/class/backlight.
Checked: the face, auth and backlight tests leave /sys/class/backlight/intel_backlight/brightness
untouched (value and mtime) while they run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- scripts/test-native.py (just t WORD): builds once, runs each test in its own
process in parallel, longest first, with a timeout; CI and just test use it.
- Tests no longer search this machine's apps and icon themes.
- Compiled wasm modules are cached between test processes (CHANDRA_WASM_CACHE).
- draw_circle fills its middle with spans (same pixels); encode_png writes into
one buffer, with a CRC table.
- The ffprobe helper always waited out its 20 s: its done file was empty.
- The fake polkit helper no longer depends on which shell sh is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>