mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 10:56:16 -04:00
print failure message in case not all saucelabs runner could be started
This commit is contained in:
parent
e824ac424d
commit
d8bcfa0a49
1 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,12 @@ var allTestsPassed = true;
|
|||
// overwrite the default exit code
|
||||
// in case not all worker can be run (due to saucelabs limits), `queue.drain` below will not be called
|
||||
// and the script would silently exit with error code 0
|
||||
process.exitCode = 1;
|
||||
process.exitCode = 2;
|
||||
process.on('exit', (code) => {
|
||||
if (code === 2){
|
||||
console.log("\x1B[31mFAILED\x1B[39m Not all saucelabs runner have been started.");
|
||||
}
|
||||
})
|
||||
|
||||
var sauceTestWorker = async.queue(function (testSettings, callback) {
|
||||
var browser = wd.promiseChainRemote(config.host, config.port, config.username, config.accessKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue