Skip to content

Commit 715cba9

Browse files
committed
Tmp commit prior to SNAPSHOTS=overwrite cargo t --test testsuite help::
# Conflicts: # tests/testsuite/help.rs
1 parent 7c28d80 commit 715cba9

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/testsuite/help.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Tests for cargo's help output.
22
33
use cargo_test_support::registry::Package;
4+
use cargo_test_support::str;
45
use cargo_test_support::{basic_manifest, cargo_exe, cargo_process, paths, process, project};
56
use std::fs;
67
use std::path::Path;
@@ -15,15 +16,11 @@ fn help() {
1516
cargo_process("build -h").run();
1617
cargo_process("help help").run();
1718
// Ensure that help output goes to stdout, not stderr.
18-
cargo_process("search --help").with_stderr_data("").run();
19+
cargo_process("search --help").with_stderr(str![]).run();
1920
cargo_process("search --help")
20-
.with_stdout_data(
21-
"\
22-
...
23-
[..] --frozen [..]
24-
...
25-
",
26-
)
21+
.with_stdout_contains(str![[r#"
22+
HEY SNAPBOX, FIX THIS AUTOMATICALLY PLEASE
23+
"#]])
2724
.run();
2825
}
2926

0 commit comments

Comments
 (0)