Skip to content

Commit d8f7828

Browse files
committed
more cargo install usage adaptations in the same tests
1 parent 6df5210 commit d8f7828

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/testsuite/required_features.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ fn install_default_features() {
747747
assert_that(p.cargo("uninstall").arg("foo"), execs().with_status(0));
748748

749749
assert_that(
750-
p.cargo("install").arg("--no-default-features"),
750+
p.cargo("install --path .").arg("--no-default-features"),
751751
execs().with_status(101).with_stderr(format!(
752752
"\
753753
[INSTALLING] foo v0.0.1 ([..])
@@ -758,12 +758,12 @@ fn install_default_features() {
758758
);
759759
assert_that(cargo_home(), is_not(has_installed_exe("foo")));
760760

761-
assert_that(p.cargo("install").arg("--bin=foo"), execs().with_status(0));
761+
assert_that(p.cargo("install --path .").arg("--bin=foo"), execs().with_status(0));
762762
assert_that(cargo_home(), has_installed_exe("foo"));
763763
assert_that(p.cargo("uninstall").arg("foo"), execs().with_status(0));
764764

765765
assert_that(
766-
p.cargo("install")
766+
p.cargo("install --path .")
767767
.arg("--bin=foo")
768768
.arg("--no-default-features"),
769769
execs().with_status(101).with_stderr(format!(
@@ -781,14 +781,14 @@ Consider enabling them by passing e.g. `--features=\"a\"`
781781
assert_that(cargo_home(), is_not(has_installed_exe("foo")));
782782

783783
assert_that(
784-
p.cargo("install").arg("--example=foo"),
784+
p.cargo("install --path .").arg("--example=foo"),
785785
execs().with_status(0),
786786
);
787787
assert_that(cargo_home(), has_installed_exe("foo"));
788788
assert_that(p.cargo("uninstall").arg("foo"), execs().with_status(0));
789789

790790
assert_that(
791-
p.cargo("install")
791+
p.cargo("install --path .")
792792
.arg("--example=foo")
793793
.arg("--no-default-features"),
794794
execs().with_status(101).with_stderr(format!(
@@ -874,15 +874,15 @@ fn install_multiple_required_features() {
874874
assert_that(p.cargo("uninstall").arg("foo"), execs().with_status(0));
875875

876876
assert_that(
877-
p.cargo("install").arg("--features").arg("c"),
877+
p.cargo("install --path .").arg("--features").arg("c"),
878878
execs().with_status(0),
879879
);
880880
assert_that(cargo_home(), has_installed_exe("foo_1"));
881881
assert_that(cargo_home(), has_installed_exe("foo_2"));
882882
assert_that(p.cargo("uninstall").arg("foo"), execs().with_status(0));
883883

884884
assert_that(
885-
p.cargo("install").arg("--no-default-features"),
885+
p.cargo("install --path .").arg("--no-default-features"),
886886
execs().with_status(101).with_stderr(
887887
"\
888888
[INSTALLING] foo v0.0.1 ([..])

0 commit comments

Comments
 (0)