From b085899bf09cd3a252617785f1fc13c3b65bdae3 Mon Sep 17 00:00:00 2001 From: Bryce Berger Date: Sat, 25 Jan 2025 17:18:29 -0500 Subject: [PATCH] fix hardcoded path test on nixos nixos provides the following contents in `/bin` and `/usr/bin`: /bin: sh /usr/bin: env That's it. From what I know, every linux distribution, as well as macos, has `/usr/bin/env` --- gix-command/tests/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gix-command/tests/command.rs b/gix-command/tests/command.rs index 83326b3bbd6..deecb039c84 100644 --- a/gix-command/tests/command.rs +++ b/gix-command/tests/command.rs @@ -507,7 +507,7 @@ mod spawn { #[cfg(unix)] #[test] fn direct_command_with_absolute_command_path() -> crate::Result { - assert!(gix_command::prepare("/bin/ls").spawn()?.wait()?.success()); + assert!(gix_command::prepare("/usr/bin/env").spawn()?.wait()?.success()); Ok(()) }