Skip to content

Commit

Permalink
fix hardcoded path test on nixos
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
bryceberger committed Jan 25, 2025
1 parent 810b5cf commit b085899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gix-command/tests/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit b085899

Please sign in to comment.