Fix issue that prevented Mocha and generator tests from running on certain configurations (#5344)

* Fix issue that prevented Mocha and generator tests from running on certain configurations

* Link to Blockly issue re: --disable-gpu flag
This commit is contained in:
Aaron Dodson
2021-08-10 15:11:56 -07:00
committed by GitHub
parent a7fcf881fa
commit a04debf275
2 changed files with 8 additions and 2 deletions

View File

@@ -51,8 +51,11 @@ async function runGeneratorsInBrowser() {
args: ['--headless', '--no-sandbox', '--disable-dev-shm-usage', '--allow-file-access-from-files']
};
} else {
// --disable-gpu is needed to prevent Chrome from hanging on Linux with
// NVIDIA drivers older than v295.20. See
// https://github.com/google/blockly/issues/5345 for details.
options.capabilities['goog:chromeOptions'] = {
args: ['--allow-file-access-from-files']
args: ['--allow-file-access-from-files', '--disable-gpu']
};
}

View File

@@ -36,8 +36,11 @@ async function runMochaTestsInBrowser() {
]
};
} else {
// --disable-gpu is needed to prevent Chrome from hanging on Linux with
// NVIDIA drivers older than v295.20. See
// https://github.com/google/blockly/issues/5345 for details.
options.capabilities['goog:chromeOptions'] = {
args: ['--allow-file-access-from-files']
args: ['--allow-file-access-from-files', '--disable-gpu']
};
}