From 372d0a96c507b4a6e9c4bd07946351367986cc8e Mon Sep 17 00:00:00 2001 From: Nihal Ajayakumar Date: Wed, 25 Feb 2026 16:03:38 -0500 Subject: [PATCH] hostid: remove test_normal superseded by test_output_format Per review feedback, drop the weaker unanchored test_normal now that test_output_format's fully-anchored regex covers the same ground. --- tests/by-util/test_hostid.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/by-util/test_hostid.rs b/tests/by-util/test_hostid.rs index 98d9ba6f7..1b0c25ac2 100644 --- a/tests/by-util/test_hostid.rs +++ b/tests/by-util/test_hostid.rs @@ -5,17 +5,9 @@ use regex::Regex; use uutests::new_ucmd; -#[test] -fn test_normal() { - let re = Regex::new(r"^[0-9a-f]{8}").unwrap(); - new_ucmd!().succeeds().stdout_matches(&re); -} - #[test] fn test_output_format() { // Output must be exactly 8 lowercase hex digits followed by a newline. - // The stricter anchored regex catches outputs like "00000000garbage" - // that the existing test_normal regex would incorrectly accept. let re = Regex::new(r"^[0-9a-f]{8}\n$").unwrap(); new_ucmd!().succeeds().stdout_matches(&re); }