diff --git a/tests/testsuite/features.rs b/tests/testsuite/features.rs index c5aaac6a581..17524b96c08 100644 --- a/tests/testsuite/features.rs +++ b/tests/testsuite/features.rs @@ -692,7 +692,7 @@ fn many_cli_features() { .build(); assert_that( - p.cargo("build --features bar baz"), + p.cargo("build --features").arg("bar baz"), execs().with_stderr(format!( "\ [COMPILING] ba[..] v0.0.1 ({dir}/ba[..]) @@ -1394,7 +1394,7 @@ fn many_cli_features_comma_and_space_delimited() { .build(); assert_that( - p.cargo("build --features bar,baz bam bap"), + p.cargo("build --features").arg("bar,baz bam bap"), execs().with_stderr(format!( "\ [COMPILING] ba[..] v0.0.1 ({dir}/ba[..]) diff --git a/tests/testsuite/metadata.rs b/tests/testsuite/metadata.rs index e1b7edb711e..2ad48f7dbdb 100644 --- a/tests/testsuite/metadata.rs +++ b/tests/testsuite/metadata.rs @@ -980,7 +980,7 @@ fn multiple_features() { .build(); assert_that( - p.cargo("metadata --features a b"), + p.cargo("metadata --features").arg("a b"), execs(), ); }