From 329eb5fa43be61347f95d54aec745305613260ef Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Sat, 12 Apr 2025 08:10:08 -0500 Subject: [PATCH] Improve test output when file command output does not match expected regex --- run-tests/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests/src/main.rs b/run-tests/src/main.rs index 1f0f565..46afe30 100644 --- a/run-tests/src/main.rs +++ b/run-tests/src/main.rs @@ -127,7 +127,7 @@ fn check_binary(bin_path: &PathBuf, expect_file_re: Option<&str>, expect_strippe let re = Regex::new(file_re).expect("Invalid regex"); assert!( re.is_match(&file_output), - "`file` output for {} matches expected output", + "`file` output for {} matches `{file_re}`", bin_path.display(), ); }