From 2dd8d64f6dec28f0ffc173dcf8eaa331be6ec61a Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 19 Dec 2025 11:37:12 -0600 Subject: [PATCH] test(sbom): Switch to snapshots --- tests/testsuite/sbom.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/testsuite/sbom.rs b/tests/testsuite/sbom.rs index 8c272a767..1439a7691 100644 --- a/tests/testsuite/sbom.rs +++ b/tests/testsuite/sbom.rs @@ -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"));