Skip to content

Commit 4c1c8ab

Browse files
Rollup merge of rust-lang#116798 - GuillaumeGomez:rustdoc-gui-tester-cleanup, r=notriddle
Improve display of parallel jobs in rustdoc-gui tester script If no `-j` option is not passed to `x.py`, it would display `-1`, which isn't great. r? `@notriddle`
2 parents 581f88d + ad26a0b commit 4c1c8ab

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/tools/rustdoc-gui/tester.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,17 @@ 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+
const len = files.length;
254+
console.log(
255+
`Running ${len} rustdoc-gui (UNBOUNDED concurrency; use "-j#" for a limit) ...`,
256+
);
255257
process.setMaxListeners(files.length + 1);
256258
} else if (headless) {
259+
console.log(`Running ${files.length} rustdoc-gui (${opts["jobs"]} concurrently) ...`);
257260
process.setMaxListeners(opts["jobs"] + 1);
261+
} else {
262+
console.log(`Running ${files.length} rustdoc-gui ...`);
258263
}
259264

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

0 commit comments

Comments
 (0)