Skip to content

Commit b085899

Browse files
committed
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`
1 parent 810b5cf commit b085899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-command/tests/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ mod spawn {
507507
#[cfg(unix)]
508508
#[test]
509509
fn direct_command_with_absolute_command_path() -> crate::Result {
510-
assert!(gix_command::prepare("/bin/ls").spawn()?.wait()?.success());
510+
assert!(gix_command::prepare("/usr/bin/env").spawn()?.wait()?.success());
511511
Ok(())
512512
}
513513

0 commit comments

Comments
 (0)