Skip to content

Commit

Permalink
feat: add ELECTRON_DISABLE_SANDBOX env var (#16662)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed Feb 1, 2019
1 parent ecb7377 commit 9a68ce8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atom/app/atom_main_delegate.cc
Expand Up @@ -164,6 +164,9 @@ bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {
if (env->HasVar("ELECTRON_ENABLE_STACK_DUMPING"))
base::debug::EnableInProcessStackDumping();

if (env->HasVar("ELECTRON_DISABLE_SANDBOX"))
command_line->AppendSwitch(service_manager::switches::kNoSandbox);

chrome::RegisterPathProvider();

#if defined(OS_MACOSX)
Expand Down
6 changes: 6 additions & 0 deletions vsts-arm-test-steps.yml
Expand Up @@ -70,18 +70,24 @@ steps:
python electron/script/verify-ffmpeg.py --source-root "$PWD" --build-dir out/Default --ffmpeg-path out/ffmpeg
displayName: Verify non proprietary ffmpeg
timeoutInMinutes: 5
env:
ELECTRON_DISABLE_SANDBOX: 1

- bash: |
cd src
python electron/script/verify-mksnapshot.py --source-root "$PWD" --build-dir out/Default
displayName: Verify mksnapshot
timeoutInMinutes: 5
env:
ELECTRON_DISABLE_SANDBOX: 1

- bash: |
cd src
./out/Default/electron electron/spec --ci
displayName: 'Run Electron tests'
timeoutInMinutes: 10
env:
ELECTRON_DISABLE_SANDBOX: 1

- task: PublishTestResults@2
displayName: 'Publish Test Results'
Expand Down

0 comments on commit 9a68ce8

Please sign in to comment.