Skip to content

Commit 78f5269

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/rustdoc-gui/tester.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,17 @@ async function main(argv) {
248248
opts["jobs"] = 1;
249249
console.log("`--no-headless` option is active, disabling concurrency for running tests.");
250250
}
251-
252-
console.log(`Running ${files.length} rustdoc-gui (${opts["jobs"]} concurrently) ...`);
251+
let jobs = opts["jobs"];
253252

254253
if (opts["jobs"] < 1) {
254+
jobs = files.length;
255255
process.setMaxListeners(files.length + 1);
256256
} else if (headless) {
257257
process.setMaxListeners(opts["jobs"] + 1);
258258
}
259259

260+
console.log(`Running ${files.length} rustdoc-gui (${jobs} concurrently) ...`);
261+
260262
// We catch this "event" to display a nicer message in case of unexpected exit (because of a
261263
// missing `--no-sandbox`).
262264
const exitHandling = () => {

0 commit comments

Comments
 (0)