Skip to content

Commit 1375d6e

Browse files
Improve display of parallel jobs in rustdoc-gui tester script
1 parent 09eff44 commit 1375d6e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/tools/rustdoc-gui/tester.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,16 @@ async function main(argv) {
249249
console.log("`--no-headless` option is active, disabling concurrency for running tests.");
250250
}
251251

252-
console.log(`Running ${files.length} rustdoc-gui (${opts["jobs"]} concurrently) ...`);
253-
254252
if (opts["jobs"] < 1) {
253+
console.log(
254+
`Running ${files.length} rustdoc-gui (UNBOUNDED concurrency; use "-j#" for a limit) ...`
255+
);
255256
process.setMaxListeners(files.length + 1);
256257
} else if (headless) {
258+
console.log(`Running ${files.length} rustdoc-gui (${opts["jobs"]} concurrently) ...`);
257259
process.setMaxListeners(opts["jobs"] + 1);
260+
} else {
261+
console.log(`Running ${files.length} rustdoc-gui ...`);
258262
}
259263

260264
// We catch this "event" to display a nicer message in case of unexpected exit (because of a

0 commit comments

Comments
 (0)