test(sbom): Switch to snapshots

This commit is contained in:
Ed Page 2025-12-19 11:37:12 -06:00
parent 6f706c26bb
commit 2dd8d64f6d

View File

@ -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"));