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:
commit
476c75ed48
@ -607,11 +607,18 @@ function makeRef(done, bot) {
|
|||||||
console.log();
|
console.log();
|
||||||
console.log("### Creating reference images");
|
console.log("### Creating reference images");
|
||||||
|
|
||||||
|
let forceNoChrome = false;
|
||||||
const args = ["test.js", "--masterMode"];
|
const args = ["test.js", "--masterMode"];
|
||||||
if (bot) {
|
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");
|
args.push("--noPrompts", "--strictVerify");
|
||||||
}
|
}
|
||||||
if (process.argv.includes("--noChrome")) {
|
if (process.argv.includes("--noChrome") || forceNoChrome) {
|
||||||
args.push("--noChrome");
|
args.push("--noChrome");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user