Skip to content

Commit 5e4657d

Browse files
committed
Fix double output of the summary line
1 parent 73d96b0 commit 5e4657d

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
@@ -93,8 +93,13 @@ function char_printer(n_tests) {
9393
}
9494
},
9595
finish: function() {
96-
const spaces = " ".repeat(max_per_line - (current % max_per_line));
97-
process.stdout.write(`${spaces} (${current}/${n_tests})${os.EOL}${os.EOL}`);
96+
if (current % max_per_line === 0) {
97+
// Don't output if we are already at a matching line end
98+
console.log("");
99+
} else {
100+
const spaces = " ".repeat(max_per_line - (current % max_per_line));
101+
process.stdout.write(`${spaces} (${current}/${n_tests})${os.EOL}${os.EOL}`);
102+
}
98103
},
99104
};
100105
}

0 commit comments

Comments
 (0)