Skip to content

Commit 7f2b52b

Browse files
committed
More spacing between the different blocks of results
1 parent 86fa21c commit 7f2b52b

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

src/tools/rustdoc-gui/tester.js

+17-10
Original file line numberDiff line numberDiff line change
@@ -197,21 +197,28 @@ async function main(argv) {
197197
}
198198
status_bar.finish();
199199

200-
if (debug === false) {
200+
if (debug) {
201201
results.successful.sort(by_filename);
202202
results.successful.forEach(r => {
203203
console.log(r.output);
204204
});
205205
}
206-
results.failed.sort(by_filename);
207-
results.failed.forEach(r => {
208-
console.log(r.output);
209-
});
210-
// print run errors on the bottom so developers see them better
211-
results.errored.sort(by_filename);
212-
results.errored.forEach(r => {
213-
console.error(r.output);
214-
});
206+
207+
if (results.failed.length > 0) {
208+
console.log("");
209+
results.failed.sort(by_filename);
210+
results.failed.forEach(r => {
211+
console.log(r.output);
212+
});
213+
}
214+
if (results.errored.length > 0) {
215+
console.log(os.EOL);
216+
// print run errors on the bottom so developers see them better
217+
results.errored.sort(by_filename);
218+
results.errored.forEach(r => {
219+
console.error(r.output);
220+
});
221+
}
215222

216223
if (failed) {
217224
process.exit(1);

0 commit comments

Comments
 (0)