mirror of
https://github.com/rust-lang/cargo.git
synced 2026-01-17 16:51:21 +00:00
test(sbom): Switch to snapshots
This commit is contained in:
parent
6f706c26bb
commit
2dd8d64f6d
@ -28,12 +28,12 @@ fn warn_without_passing_unstable_flag() {
|
||||
p.cargo("build")
|
||||
.env("CARGO_BUILD_SBOM", "true")
|
||||
.masquerade_as_nightly_cargo(&["sbom"])
|
||||
.with_stderr_data(
|
||||
"\
|
||||
[WARNING] ignoring 'sbom' config, pass `-Zsbom` to enable it\n\
|
||||
[COMPILING] foo v0.5.0 ([..])\n\
|
||||
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]\n",
|
||||
)
|
||||
.with_stderr_data(snapbox::str![[r#"
|
||||
[WARNING] ignoring 'sbom' config, pass `-Zsbom` to enable it
|
||||
[COMPILING] foo v0.5.0 ([ROOT]/foo)
|
||||
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
|
||||
|
||||
"#]])
|
||||
.run();
|
||||
|
||||
let file = append_sbom_suffix(&p.bin("foo"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user