Fix detect_binary test to work on Ubuntu (dash) sandboxes

`sh --version` exits non-zero on dash (Ubuntu default), so the test
only passed on macOS where sh is bash. Use `git` instead which
reliably supports --version on all platforms.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-14 15:31:27 -04:00
parent c5df9176b3
commit 25ec842a7f
No known key found for this signature in database

View file

@ -993,7 +993,7 @@ mod tests {
#[test]
fn detect_binary_finds_existing_command() {
assert!(detect_binary_on_path("sh"));
assert!(detect_binary_on_path("git"));
}
#[test]