diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-10-16 16:53:12 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-10-16 20:16:08 +0200 |
| commit | ad26a0b3dd1526af5486354b61aaf4c5a0118eb3 (patch) | |
| tree | b6e5a9ca542435da0094f438de7bc3629fc3b1e0 /src/tools/rustdoc-gui/tester.js | |
| parent | 09eff4488902242b8a4a86697d74ad4166ee9e7e (diff) | |
| download | rust-ad26a0b3dd1526af5486354b61aaf4c5a0118eb3.tar.gz rust-ad26a0b3dd1526af5486354b61aaf4c5a0118eb3.zip | |
Improve display of parallel jobs in rustdoc-gui tester script
Diffstat (limited to 'src/tools/rustdoc-gui/tester.js')
| -rw-r--r-- | src/tools/rustdoc-gui/tester.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/rustdoc-gui/tester.js b/src/tools/rustdoc-gui/tester.js index af1bc05ddb2..8f6626f6296 100644 --- a/src/tools/rustdoc-gui/tester.js +++ b/src/tools/rustdoc-gui/tester.js @@ -249,12 +249,17 @@ async function main(argv) { console.log("`--no-headless` option is active, disabling concurrency for running tests."); } - console.log(`Running ${files.length} rustdoc-gui (${opts["jobs"]} concurrently) ...`); - if (opts["jobs"] < 1) { + const len = files.length; + console.log( + `Running ${len} rustdoc-gui (UNBOUNDED concurrency; use "-j#" for a limit) ...`, + ); process.setMaxListeners(files.length + 1); } else if (headless) { + console.log(`Running ${files.length} rustdoc-gui (${opts["jobs"]} concurrently) ...`); process.setMaxListeners(opts["jobs"] + 1); + } else { + console.log(`Running ${files.length} rustdoc-gui ...`); } // We catch this "event" to display a nicer message in case of unexpected exit (because of a |
