Skip to content

Commit

Permalink
allow disabling gpu in tests (elastic#26684) (elastic#26869)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Dec 10, 2018
1 parent aa9a5e1 commit 2167c5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/services/remote/leadfoot_command.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ async function attemptToCreateCommand(log, server, driverApi) {
log.debug('[leadfoot:command] Creating session');

let browserOptions = {};
if (process.env.TEST_DISABLE_GPU) {
browserOptions = { chromeOptions: { args: ['disable-gpu'] } };
}
if (process.env.TEST_BROWSER_HEADLESS) {
browserOptions = { chromeOptions: { args: ['headless', 'disable-gpu'] } };
}
Expand Down

0 comments on commit 2167c5b

Please sign in to comment.