[scripts] (P7): the TCP lane supervisor starts headless like every other server the harness reaches

This commit is contained in:
2026-09-23 13:23:09 -04:00
parent eaef83b32a
commit d1549cba57
2 changed files with 59 additions and 0 deletions
+9
View File
@@ -63,6 +63,15 @@ def start(args):
for key in ('MOBILEGL_TRANSPORT', 'MOBILEGL_IPC_SERVER_PATH', 'MOBILEGL_IPC_RING_MB', 'MOBILEGL_IPC_STAGE_MB',
'MOBILEGL_IPC_CONTROL', 'MOBILEGL_IPC_ENDPOINT', 'MOBILEGL_BACKEND_TYPE'):
env.pop(key, None)
# The harness's headless pin (HeadlessGL.cpp, EnsureHeadlessPlatform), for the one server it
# does not start. Under inproc and spawn the server inherits the client's environment AFTER the
# pin; this supervisor inherits ctest's. Without it Mesa takes its build-time x11 platform: on a
# WSLg workstation that binds the window system and goes green, on a runner with no DISPLAY
# eglInitialize fails ("xcb_connect failed") and every Tcp. case reds with "remote TCP bring-up
# failed". An operator's explicit EGL_PLATFORM still wins, as it does in the harness.
env.setdefault('EGL_PLATFORM', 'surfaceless')
env.pop('DISPLAY', None)
env.pop('WAYLAND_DISPLAY', None)
log_path = args.state.with_suffix('.log')
with log_path.open('wb') as log:
child = subprocess.Popen([args.server, args.endpoint, '--serve'], env=env,