We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09eff44 commit 78f5269Copy full SHA for 78f5269
src/tools/rustdoc-gui/tester.js
@@ -248,15 +248,17 @@ async function main(argv) {
248
opts["jobs"] = 1;
249
console.log("`--no-headless` option is active, disabling concurrency for running tests.");
250
}
251
-
252
- console.log(`Running ${files.length} rustdoc-gui (${opts["jobs"]} concurrently) ...`);
+ let jobs = opts["jobs"];
253
254
if (opts["jobs"] < 1) {
+ jobs = files.length;
255
process.setMaxListeners(files.length + 1);
256
} else if (headless) {
257
process.setMaxListeners(opts["jobs"] + 1);
258
259
260
+ console.log(`Running ${files.length} rustdoc-gui (${jobs} concurrently) ...`);
261
+
262
// We catch this "event" to display a nicer message in case of unexpected exit (because of a
263
// missing `--no-sandbox`).
264
const exitHandling = () => {
0 commit comments