mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Auto merge of #25805 - jooert:colorized_tests, r=alexcrichton
The output of individual tests can be captured now so it's safe to use colorized output even when running tests in parallel. Closes #782.
This commit is contained in:
commit
f76d9bcfc2
@ -740,7 +740,7 @@ fn should_sort_failures_before_printing_them() {
|
||||
|
||||
fn use_color(opts: &TestOpts) -> bool {
|
||||
match opts.color {
|
||||
AutoColor => get_concurrency() == 1 && stdout_isatty(),
|
||||
AutoColor => !opts.nocapture && stdout_isatty(),
|
||||
AlwaysColor => true,
|
||||
NeverColor => false,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user