Skip to content

Commit

Permalink
Enable full output of cargo-build-sbf tests (solana-labs#29411)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov authored and nickfrosty committed Jan 4, 2023
1 parent bff33e4 commit 6213f5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/cargo-build-sbf/tests/crates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ fn run_cargo_build(crate_name: &str, extra_args: &[&str], fail: bool) {
args.push("-vv");
let mut cmd = assert_cmd::Command::cargo_bin("cargo-build-sbf").unwrap();
let assert = cmd.env("RUST_LOG", "debug").args(&args).assert();
let output = assert.get_output();
println!("Test stdout\n{}\n", String::from_utf8_lossy(&output.stdout));
println!("Test stderr\n{}\n", String::from_utf8_lossy(&output.stderr));
if fail {
assert.failure();
} else {
Expand Down

0 comments on commit 6213f5a

Please sign in to comment.