Skip to content

Commit

Permalink
More spacing between the different blocks of results
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 committed Aug 14, 2021
1 parent 86fa21c commit 7f2b52b
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/tools/rustdoc-gui/tester.js
Expand Up @@ -197,21 +197,28 @@ async function main(argv) {
}
status_bar.finish();

if (debug === false) {
if (debug) {
results.successful.sort(by_filename);
results.successful.forEach(r => {
console.log(r.output);
});
}
results.failed.sort(by_filename);
results.failed.forEach(r => {
console.log(r.output);
});
// print run errors on the bottom so developers see them better
results.errored.sort(by_filename);
results.errored.forEach(r => {
console.error(r.output);
});

if (results.failed.length > 0) {
console.log("");
results.failed.sort(by_filename);
results.failed.forEach(r => {
console.log(r.output);
});
}
if (results.errored.length > 0) {
console.log(os.EOL);
// print run errors on the bottom so developers see them better
results.errored.sort(by_filename);
results.errored.forEach(r => {
console.error(r.output);
});
}

if (failed) {
process.exit(1);
Expand Down

0 comments on commit 7f2b52b

Please sign in to comment.