diff --git a/tests/testsuite/freshness.rs b/tests/testsuite/freshness.rs index 4ac2c01411b0..c89d86f84cc1 100644 --- a/tests/testsuite/freshness.rs +++ b/tests/testsuite/freshness.rs @@ -2934,7 +2934,7 @@ fn use_mtime_cache_in_cargo_home() { p.cargo("check -v") .env("CARGO_HOME", &cargo_home) .with_status(101) - .with_stderr( + .with_stderr_contains( "\ [DIRTY] foo v0.5.0 ([CWD]): [..] [CHECKING] foo v0.5.0 ([CWD]) diff --git a/tests/testsuite/help.rs b/tests/testsuite/help.rs index 5340a66040f2..23b5bb49bdab 100644 --- a/tests/testsuite/help.rs +++ b/tests/testsuite/help.rs @@ -148,7 +148,7 @@ fn help_alias() { cargo_process("help empty-alias") .env("PATH", Path::new("")) .with_status(101) - .with_stderr_contains("[..]The subcommand 'empty-alias' wasn't recognized[..]") + .with_stderr_contains("[..]no such command: `empty-alias`[..]") .run(); // Because `simple-alias` aliases a subcommand with no arguments, help shows the manpage.