From d3b82aa3760128bd2d713f1d3857221baca80c17 Mon Sep 17 00:00:00 2001 From: Fuad Ismail <fuad1502@gmail.com> Date: Thu, 12 Dec 2024 12:59:35 +0700 Subject: [PATCH] tests/dmesg: handle fixture line endings when fixture is checked out on Windows. --- tests/by-util/test_dmesg.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/by-util/test_dmesg.rs b/tests/by-util/test_dmesg.rs index d8d6836..a75f4a7 100644 --- a/tests/by-util/test_dmesg.rs +++ b/tests/by-util/test_dmesg.rs @@ -155,7 +155,8 @@ fn test_since_until() { .arg("--since=\"2024-11-19 17:47:32 +0700\"") .arg("--until=\"2024-11-19 18:55:52 +0700\"") .succeeds() - .stdout_only_fixture("test_since_until.expected"); + .no_stderr() + .stdout_is_templated_fixture("test_since_until.expected", &[("\r\n", "\n")]); } #[test]