When the killTimeout in runner.js stops the tests, it's an failure.

saucelabs-parallel
webzwo0i 2020-07-10 21:18:30 +02:00
parent 5e1b823887
commit f0934076fa
1 changed files with 7 additions and 2 deletions

View File

@ -66,8 +66,13 @@ var sauceTestWorker = async.queue(function (testSettings, callback) {
knownConsoleText = consoleText;
if(knownConsoleText.indexOf("FINISHED") > 0){
var success = knownConsoleText.indexOf("FAILED") === -1;
stopSauce(success);
let match = knownConsoleText.match(/FINISHED - ([0-9]+) tests passed, ([0-9]+) tests failed/);
if (match[2] && match[2] == 0){
stopSauce(true);
}
else {
stopSauce(false);
}
}
});
}, 5000);