Skip to content

Commit d86105d

Browse files
committed
need check
1 parent 41c7bea commit d86105d

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

lib/execProc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,8 @@ function buildExecRunner(failedByAssert, runOpts) {
127127
module.exports = {
128128
buildExecRunner
129129
}
130+
131+
132+
const a = `IT_TITLE:[Upload product offer]
133+
E/launcher - Process exited with error code 1
134+
`

lib/index.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,28 @@ function reRunnerBuilder(runOptions) {
4646
.map((file) => getFormedRunCommand(file)))
4747
.filter(function(cmd) {return cmd.includes(grepWord)})
4848

49+
if(defaultStatus) {
50+
console.log(`Attempts count is: ${attemptsCount}`)
51+
}
52+
4953
const failedCommands = await new Array(attemptsCount)
5054
// create array with current length
5155
.fill(attemptsCount)
5256
// execute run
5357
.reduce((resolver, /*current*/ current, index) => {
5458

55-
return resolver.then((resolvedCommandsArray) => {
59+
if(defaultStatus) {
60+
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
61+
console.log(`Execution number: ${index}`)
62+
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
63+
}
5664

65+
return resolver.then((resolvedCommandsArray) => {
66+
if(defaultStatus) {
67+
console.log('=========================================================================')
68+
console.log(`Processes count: ${resolvedCommandsArray.length}`)
69+
console.log('=========================================================================')
70+
}
5771
return runCommandsArray(resolvedCommandsArray, [], index)
5872

5973
.then((failedCommandsArray) => {

0 commit comments

Comments
 (0)