From ad3a5c6d49aba3d6d4a0f1e9d8c9f1d58fd46215 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Sun, 13 Sep 2026 20:14:09 -0600 Subject: [PATCH] test: normalize CRLF in the run_checks docstring pin (Windows CI) --- src/config/request_context.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config/request_context.rs b/src/config/request_context.rs index 517ea3c..ef594d5 100644 --- a/src/config/request_context.rs +++ b/src/config/request_context.rs @@ -8315,7 +8315,11 @@ mod tests { "review-gauntlet README must not describe the retired raw-🔴 gate" ); - let runner = read_to_string(readmes.join("adversary/scripts/run_checks.py")).unwrap(); + // Normalize line endings: the assertion below spans a line break and + // Windows checkouts carry CRLF. + let runner = read_to_string(readmes.join("adversary/scripts/run_checks.py")) + .unwrap() + .replace("\r\n", "\n"); assert!( runner.contains("Trust boundary:") && runner.contains("never a field an LLM"), "run_checks.py docstring must state the declared-variable trust boundary"