Skip to content

Commit 85e75ae

Browse files
committed
---
yaml --- r: 4335 b: refs/heads/master c: ce8cac5 h: refs/heads/master i: 4333: a8a5694 4331: 6992501 4327: 9761690 4319: 9b3d5de v: v3
1 parent 322a967 commit 85e75ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: a601eb169ee5748b7afebab12d75ecc3ad3b47bc
2+
refs/heads/master: ce8cac5d9a9a763d0b0e7730f83d790414546471

trunk/src/lib/test.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ fn run_tests_console_(opts: &test_opts, tests: &test_desc[],
171171

172172
st.out.write_str(#fmt("\nresult: "));
173173
if success {
174-
write_ok(st.out, st.use_color);
175-
} else { write_failed(st.out, st.use_color); }
174+
// There's no parallelism at this point so it's safe to use color
175+
write_ok(st.out, true);
176+
} else { write_failed(st.out, true); }
176177
st.out.write_str(#fmt(". %u passed; %u failed; %u ignored\n\n",
177178
st.passed, st.failed, st.ignored));
178179

0 commit comments

Comments
 (0)