mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Fix double output of the summary line
This commit is contained in:
parent
73d96b090b
commit
5e4657d3f7
@ -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}`);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user