mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Retry the timed out tests for a number of times
This commit is contained in:
parent
4ef17f67ff
commit
5fabcbb4f7
19
script/test
19
script/test
@ -102,16 +102,15 @@ function spawnTest(executablePath, testArguments, options, callback, testName, f
|
||||
|
||||
// on close
|
||||
cp.on('close', exitCode => {
|
||||
if (exitCode !== 0) {
|
||||
console.log(`##[error] Tests for ${testName} failed.`.red)
|
||||
console.log(stderrOutput)
|
||||
}
|
||||
if (finalize) { finalize() } // if finalizer provided
|
||||
callback(null, {
|
||||
exitCode,
|
||||
step: testName,
|
||||
testCommand: `You can run the test again using: \n\t ${executablePath} ${testArguments.join(' ')}`,
|
||||
})
|
||||
if (finalize) { finalize() } // if finalizer provided
|
||||
callback(null, {
|
||||
exitCode,
|
||||
step: testName,
|
||||
testCommand: `You can run the test again using: \n\t ${executablePath} ${testArguments.join(' ')}`,
|
||||
})
|
||||
if (exitCode !== 0) {
|
||||
retryOrFailTest(stderrOutput, executablePath, testArguments, options, callback, testName, finalize)
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user