From: Fredrik Larsson Date: Wed, 11 Oct 2017 19:34:44 +0000 (+0200) Subject: Use multiple install command in the corresponding test X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~5^2~20^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6431336a850eb96fd2200627b2ea26d5a110b1f6;p=cargo.git Use multiple install command in the corresponding test --- diff --git a/tests/install.rs b/tests/install.rs index b7935affd..c4c722bfb 100644 --- a/tests/install.rs +++ b/tests/install.rs @@ -82,16 +82,15 @@ error: some crates failed to install assert_that(cargo_home(), has_installed_exe("foo")); assert_that(cargo_home(), has_installed_exe("bar")); - assert_that(cargo_process("uninstall").arg("foo"), + assert_that(cargo_process("uninstall").args(&["foo", "bar"]), execs().with_status(0).with_stderr(&format!("\ [REMOVING] {home}[..]bin[..]foo[..] -", - home = cargo_home().display()))); - assert_that(cargo_process("uninstall").arg("bar"), - execs().with_status(0).with_stderr(&format!("\ [REMOVING] {home}[..]bin[..]bar[..] + +Summary: Successfully uninstalled foo, bar! ", home = cargo_home().display()))); + assert_that(cargo_home(), is_not(has_installed_exe("foo"))); assert_that(cargo_home(), is_not(has_installed_exe("bar"))); }