Skip to content

Commit 1fe384b

Browse files
committed
Enable colors by default when we can’t capture output.
1 parent 7802d6e commit 1fe384b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustc-test"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
authors = ["The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
description = "A fork of Rust’s `test` crate that doesn’t require unstable language features."

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ pub fn parse_opts(args: &[String]) -> Option<OptRes> {
405405
let run_tests = !bench_benchmarks || matches.opt_present("test");
406406

407407
let mut nocapture =
408-
if cfg!(feature = "capture") { matches.opt_present("nocapture") } else { true };
408+
if cfg!(feature = "capture") { matches.opt_present("nocapture") } else { false };
409409
if !nocapture {
410410
nocapture = env::var("RUST_TEST_NOCAPTURE").is_ok();
411411
}

0 commit comments

Comments
 (0)