Skip to content

Commit 842579e

Browse files
committed
test: apply suggestion to testsuite version from code review
1 parent ca116ce commit 842579e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/testsuite/version.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Tests for displaying the cargo version.
22
3-
use cargo_test_support::{cargo_process, project, str};
4-
use snapbox::IntoData as _;
3+
use cargo_test_support::{cargo_process, project};
54

65
#[cargo_test]
76
fn simple() {
@@ -52,18 +51,19 @@ fn version_works_with_bad_target_dir() {
5251
fn verbose() {
5352
// This is mainly to check that it doesn't explode.
5453
cargo_process("-vV")
55-
.with_stdout_data(
56-
str![[r#"
57-
cargo [..] ([..] [..])
54+
.with_stdout_data(format!(
55+
"\
56+
cargo {}
5857
release: [..]
5958
commit-hash: [..]
6059
commit-date: [..]
6160
host: [HOST_TARGET]
6261
libgit2: [..] (sys:[..] [..])
6362
libcurl: [..] (sys:[..] [..])
6463
...
65-
"#]]
66-
.unordered(),
67-
)
64+
os: [..]
65+
",
66+
cargo::version()
67+
))
6868
.run();
6969
}

0 commit comments

Comments
 (0)