| 98 | const proc = child_process.spawn(cmd, args, { ...options, stdio: 'pipe' }); |
| 99 | const syncStatus = () => reportStatus({ current, max, state, startTime }); |
| 100 | const restartTest = () => { |
| 101 | console.error(output); |
| 102 | console.error(`Test restarted due to failure.`); |
| 103 | resolve(spawnTest(cmd, args, options, reportStatus, startTime, testAttempts)); |
| 104 | }; |
| 105 | const onOutputChange = () => { |
| 106 | // Extract initial status (i.e. how many tests there are in this shard) |
| 107 | if (initialStatusRegex.test(output) && state === 'setup') { |