auto merge of #14571 : bnoordhuis/rust/libtest-check-isatty, r=alexcrichton
Fixes #14570.
This commit is contained in:
commit
064dbb9200
1 changed files with 3 additions and 1 deletions
|
@ -868,7 +868,9 @@ fn should_sort_failures_before_printing_them() {
|
|||
assert!(apos < bpos);
|
||||
}
|
||||
|
||||
fn use_color() -> bool { return get_concurrency() == 1; }
|
||||
fn use_color() -> bool {
|
||||
get_concurrency() == 1 && io::stdout().get_ref().isatty()
|
||||
}
|
||||
|
||||
#[deriving(Clone)]
|
||||
enum TestEvent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue