Skip to content

Commit a527caa

Browse files
committed
test: check stderr containment explicitly
1 parent 45cfd0c commit a527caa

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

tests/testsuite/install.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,6 +1636,19 @@ workspace: [..]/foo/Cargo.toml
16361636
// current working directory.
16371637
// See https://github.com/rust-lang/cargo/issues/8619
16381638
p.cargo("install foo")
1639-
.with_stderr_does_not_contain(&stderr)
1639+
.with_stderr(
1640+
"\
1641+
[UPDATING] `[..]` index
1642+
[DOWNLOADING] crates ...
1643+
[DOWNLOADED] foo v0.1.0 (registry [..])
1644+
[INSTALLING] foo v0.1.0
1645+
[COMPILING] foo v0.1.0
1646+
[FINISHED] release [optimized] target(s) in [..]
1647+
[INSTALLING] [..]foo[EXE]
1648+
[INSTALLED] package `foo v0.1.0` (executable `foo[EXE]`)
1649+
[WARNING] be sure to add `[..]` to your PATH to be able to run the installed binaries
1650+
",
1651+
)
16401652
.run();
1653+
assert_has_installed_exe(cargo_home(), "foo");
16411654
}

0 commit comments

Comments
 (0)