Skip to content

Commit 7ae6261

Browse files
committed
change test to expect stdout
1 parent 0cd8e9c commit 7ae6261

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/testsuite/artifact_dep.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,17 +1568,14 @@ fn artifact_dep_target_specified() {
15681568
.with_status(0)
15691569
.run();
15701570

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

0 commit comments

Comments
 (0)