Print dots during parallel execution
This commit is contained in:
parent
24981c6cc0
commit
36e300b317
|
|
@ -220,11 +220,12 @@ program
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opts.parallel) {
|
if (opts.parallel) {
|
||||||
const all = await Promise.all(files.map(f => runOne(f, nextPort++)))
|
const promises = files.map(async f => {
|
||||||
for (const r of all) {
|
const r = await runOne(f, nextPort++)
|
||||||
printDots(r)
|
printDots(r)
|
||||||
results.push(r)
|
return r
|
||||||
}
|
})
|
||||||
|
results.push(...await Promise.all(promises))
|
||||||
process.stdout.write("\n")
|
process.stdout.write("\n")
|
||||||
} else {
|
} else {
|
||||||
for (const filePath of files) {
|
for (const filePath of files) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user