Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2017-09-29 12:23:27 +0300
committerXhmikosR <xhmikosr@gmail.com>2017-09-29 19:39:25 +0300
commit874fd5b952b6e75f643fb3f8abb473f76c68ef77 (patch)
tree0dc7319e11b380a46423560cc6d61d359a319bc9 /build
parent54d45072810f5cda4f3c75eba6d9acd70274a963 (diff)
Manage exceed maximum duration for our test
Diffstat (limited to 'build')
-rw-r--r--build/saucelabs-unit-test.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/build/saucelabs-unit-test.js b/build/saucelabs-unit-test.js
index 7607b6d948..09096b1468 100644
--- a/build/saucelabs-unit-test.js
+++ b/build/saucelabs-unit-test.js
@@ -34,17 +34,25 @@ const waitingCallback = (error, body, id) => {
})
}, 2000)
} else {
- const test = body['js tests'][0]
- let passed = false
+ const test = body['js tests'][0]
+ let passed = false
+ let errorStr = false
if (test.result !== null) {
- passed = test.result.total === test.result.passed
+ if (typeof test.result === 'string' && test.result === 'Test exceeded maximum duration') {
+ errorStr = test.result
+ } else {
+ passed = test.result.total === test.result.passed
+ }
}
console.log(`Tested ${testURL}`)
console.log(`Platform: ${test.platform.join(',')}`)
console.log(`Passed: ${passed.toString()}`)
console.log(`Url ${test.url} \n`)
+ if (errorStr) {
+ console.error(errorStr)
+ }
if (passed) {
jobsSuccess++