mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
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:
@@ -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']
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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']
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user