Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable sandbox execution for linux #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion bin/qunit-puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ const targetURL = args[0];
const timeout = parseInt(args[1] || 300000, 10);

const puppeteer = require('puppeteer');
const os = require('os');

(async () => {
const browser = await puppeteer.launch();
var puppeteer_options = {};
if (os.platform() === 'linux') {
puppeteer_options = {args: ['--no-sandbox', '--disable-setuid-sandbox']}
}
const browser = await puppeteer.launch(puppeteer_options);
const page = await browser.newPage();

// Attach to browser console log events, and log to node console
Expand Down