Skip to content

Commit

Permalink
Auto merge of #2722 - alexcrichton:stderr-not-stdout, r=alexcrichton
Browse files Browse the repository at this point in the history
Report status to stderr -- last few tests

Fixup of #2693 for the last few tests.
  • Loading branch information
bors committed May 20, 2016
2 parents 3b541da + 43234cd commit 235e2c2
Show file tree
Hide file tree
Showing 29 changed files with 660 additions and 670 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 235e2c2

Please sign in to comment.