[scripts] Fix Linux benchmark xvfb startup (#36860)
Minh Vu committed
Jun 25, 2026 at 08:31 UTC
c5de85a2f3fd16b8e99a207b196227441fa13176
1 file changed
+4
-1
scripts/bench/benchmark.js
+4
-1
@@ -90,7 +90,10 @@ async function initChrome() {
90
if (platform === 'linux') {
91
process.env.XVFBARGS = '-screen 0, 1024x768x16';
92
process.env.LIGHTHOUSE_CHROMIUM_PATH = 'chromium-browser';
93
- const child = spawn('xvfb start', [{detached: true, stdio: ['ignore']}]);
93
+ const child = spawn('xvfb', ['start'], {
94
+ detached: true,
95
+ stdio: 'ignore',
96
+ });
97
child.unref();
98
// wait for chrome to load then continue
99
await wait(3000);