Skip to content

Commit c5de85a

Browse files
[scripts] Fix Linux benchmark xvfb startup (react#36860)
1 parent 76caf32 commit c5de85a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/bench/benchmark.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ async function initChrome() {
9090
if (platform === 'linux') {
9191
process.env.XVFBARGS = '-screen 0, 1024x768x16';
9292
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+
});
9497
child.unref();
9598
// wait for chrome to load then continue
9699
await wait(3000);

0 commit comments

Comments
 (0)