mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
Manage exceed maximum duration for our test
This commit is contained in:
parent
54d4507281
commit
874fd5b952
@ -34,17 +34,25 @@ const waitingCallback = (error, body, id) => {
|
|||||||
})
|
})
|
||||||
}, 2000)
|
}, 2000)
|
||||||
} else {
|
} else {
|
||||||
const test = body['js tests'][0]
|
const test = body['js tests'][0]
|
||||||
let passed = false
|
let passed = false
|
||||||
|
let errorStr = false
|
||||||
|
|
||||||
if (test.result !== null) {
|
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(`Tested ${testURL}`)
|
||||||
console.log(`Platform: ${test.platform.join(',')}`)
|
console.log(`Platform: ${test.platform.join(',')}`)
|
||||||
console.log(`Passed: ${passed.toString()}`)
|
console.log(`Passed: ${passed.toString()}`)
|
||||||
console.log(`Url ${test.url} \n`)
|
console.log(`Url ${test.url} \n`)
|
||||||
|
if (errorStr) {
|
||||||
|
console.error(errorStr)
|
||||||
|
}
|
||||||
|
|
||||||
if (passed) {
|
if (passed) {
|
||||||
jobsSuccess++
|
jobsSuccess++
|
||||||
|
Loading…
x
Reference in New Issue
Block a user