Skip to content

Commit

Permalink
change test to expect stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
elchukc committed Sep 25, 2024
1 parent 0cd8e9c commit 7ae6261
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/testsuite/artifact_dep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1568,17 +1568,14 @@ fn artifact_dep_target_specified() {
.with_status(0)
.run();

// TODO: This command currently fails due to a bug in cargo but it should be fixed so that it succeeds in the future.
p.cargo("tree -Z bindeps")
.masquerade_as_nightly_cargo(&["bindeps"])
.with_stdout_data(str![[""]])
.with_stderr_data(str![[r#"
thread 'main' panicked at src/cargo/[..]:
activated_features for invalid package: features did not find PackageId { name: "bindep", version: "0.0.0", source: "[..]" } NormalOrDev
[NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
.with_stdout_data(str![[r#"
foo v0.0.0 ([ROOT]/foo)
└── bindep v0.0.0 ([ROOT]/foo/bindep)
"#]])
.with_status(101)
.with_status(0)
.run();
}

Expand Down

0 comments on commit 7ae6261

Please sign in to comment.