mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Fix Runner: Explicitly set chromium path on Linux
This commit is contained in:
@@ -23,10 +23,11 @@ async function runTest(url, options = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Launch Chrome
|
// Launch Chrome
|
||||||
const chromePath = require('puppeteer').executablePath();
|
console.log('Launching Chrome...');
|
||||||
|
const chromePath = process.platform === 'linux' ? '/usr/bin/chromium' : undefined;
|
||||||
const chrome = await chromeLauncher.launch({
|
const chrome = await chromeLauncher.launch({
|
||||||
chromePath,
|
chromeFlags: ['--headless', '--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'],
|
||||||
chromeFlags: ['--headless', '--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage']
|
chromePath: chromePath
|
||||||
});
|
});
|
||||||
|
|
||||||
// Lighthouse Config
|
// Lighthouse Config
|
||||||
|
|||||||
Reference in New Issue
Block a user