Skip to content

Commit

Permalink
Merge branch 'status-2-stderr' of https://github.com/matklad/cargo in…
Browse files Browse the repository at this point in the history
…to stdout-not-stderr
  • Loading branch information
alexcrichton committed May 20, 2016
2 parents 3b541da + f2eb995 commit 11b38e0
Show file tree
Hide file tree
Showing 29 changed files with 639 additions and 621 deletions.
2 changes: 1 addition & 1 deletion src/cargo/core/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl MultiShell {
{
match self.verbosity {
Quiet => Ok(()),
_ => self.out().say_status(status, message, GREEN, true)
_ => self.err().say_status(status, message, GREEN, true)
}
}

Expand Down
5 changes: 5 additions & 0 deletions tests/test_bad_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ test!(bad3 {
"#);
assert_that(foo.cargo_process("publish").arg("-v"),
execs().with_status(101).with_stderr("\
[UPDATING] registry `https://[..]`
[ERROR] invalid configuration for key `http.proxy`
expected a string, but found a boolean in [..]config
"));
Expand Down Expand Up @@ -232,6 +233,7 @@ test!(bad_git_dependency {

assert_that(foo.cargo_process("build").arg("-v"),
execs().with_status(101).with_stderr("\
[UPDATING] git repository `file:///`
[ERROR] Unable to update file:///
Caused by:
Expand All @@ -258,6 +260,8 @@ test!(bad_crate_type {
assert_that(foo.cargo_process("build").arg("-v"),
execs().with_status(0).with_stderr("\
warning: crate-type \"bad_type\" was not one of lib|rlib|dylib|staticlib
[COMPILING] foo v0.0.0 (file:///[..])
[RUNNING] `rustc [..] --crate-type rlib [..]`
"));
});

Expand Down Expand Up @@ -430,6 +434,7 @@ test!(unused_keys {
assert_that(foo.cargo_process("build"),
execs().with_status(0).with_stderr("\
warning: unused manifest key: target.foo.bar
[COMPILING] foo v0.1.0 (file:///[..])
"));
});

Expand Down
Loading

0 comments on commit 11b38e0

Please sign in to comment.