diff options
| author | Stefan Schindler <dns2utf8@estada.ch> | 2021-08-16 20:40:23 +0200 |
|---|---|---|
| committer | Stefan Schindler <dns2utf8@estada.ch> | 2021-08-16 21:50:12 +0200 |
| commit | 5e4657d3f7af84a0507eb341d7c51f6b9215295e (patch) | |
| tree | 610fbf0c624737348fb65ae67112cfac282a3256 /src/tools | |
| parent | 73d96b090bb68065cd3a469b27cbd568e39bf0e7 (diff) | |
| download | rust-5e4657d3f7af84a0507eb341d7c51f6b9215295e.tar.gz rust-5e4657d3f7af84a0507eb341d7c51f6b9215295e.zip | |
Fix double output of the summary line
Diffstat (limited to 'src/tools')
| -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 4e77d27d399..d1cf5fb803d 100644 --- a/src/tools/rustdoc-gui/tester.js +++ b/src/tools/rustdoc-gui/tester.js @@ -93,8 +93,13 @@ function char_printer(n_tests) { } }, finish: function() { - const spaces = " ".repeat(max_per_line - (current % max_per_line)); - process.stdout.write(`${spaces} (${current}/${n_tests})${os.EOL}${os.EOL}`); + if (current % max_per_line === 0) { + // Don't output if we are already at a matching line end + console.log(""); + } else { + const spaces = " ".repeat(max_per_line - (current % max_per_line)); + process.stdout.write(`${spaces} (${current}/${n_tests})${os.EOL}${os.EOL}`); + } }, }; } |
