[scripts] Fix Linux benchmark xvfb startup (#36860)

This commit is contained in:
Minh Vu
2026-06-25 08:31:54 +02:00
committed by GitHub
parent 5382c3a97b
commit c4ebd8814f
+4 -1
View File
@@ -90,7 +90,10 @@ async function initChrome() {
if (platform === 'linux') {
process.env.XVFBARGS = '-screen 0, 1024x768x16';
process.env.LIGHTHOUSE_CHROMIUM_PATH = 'chromium-browser';
const child = spawn('xvfb start', [{detached: true, stdio: ['ignore']}]);
const child = spawn('xvfb', ['start'], {
detached: true,
stdio: 'ignore',
});
child.unref();
// wait for chrome to load then continue
await wait(3000);