Merge pull request #14517 from Snuffleupagus/makeRef-forceNoChrome

Disable the browser-tests, during `gulp makeref`, in Google Chrome on the Windows bot (PR 14392 follow-up)
This commit is contained in:
calixteman 2022-01-30 22:09:25 +01:00 committed by GitHub
commit 476c75ed48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -607,11 +607,18 @@ function makeRef(done, bot) {
console.log();
console.log("### Creating reference images");
let forceNoChrome = false;
const args = ["test.js", "--masterMode"];
if (bot) {
const os = process.env.OS;
if (/windows/i.test(os)) {
// The browser-tests are too slow in Google Chrome on the Windows
// bot, causing a timeout, hence disabling them for now.
forceNoChrome = true;
}
args.push("--noPrompts", "--strictVerify");
}
if (process.argv.includes("--noChrome")) {
if (process.argv.includes("--noChrome") || forceNoChrome) {
args.push("--noChrome");
}