Skip to content

Commit 8c20438

Browse files
committed
ci: fix sandbox error
1 parent 3f258ce commit 8c20438

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/electron-chrome-extensions/script/spec-runner.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ async function runMainProcessElectronTests() {
5555
let exe = require('electron')
5656
const runnerArgs = ['spec', ...unknownArgs.slice(2)]
5757

58+
// Fix issue in CI
59+
// "The SUID sandbox helper binary was found, but is not configured correctly."
60+
if (process.platform === 'linux') {
61+
runnerArgs.push('--no-sandbox')
62+
}
63+
5864
const { status, signal } = childProcess.spawnSync(exe, runnerArgs, {
5965
cwd: path.resolve(__dirname, '..'),
6066
env: process.env,

0 commit comments

Comments
 (0)