Skip to content

Commit 7121276

Browse files
committed
integration: Fix running on systems with sparse /bin
`/bin/bash` is an unstable path that doesn't exist on all distributions, or may point to an unwanted version of bash. Here we switch to relying on pulling Bash from a users `PATH` to cover those cases. This fixes running integration tests on NixOS. Signed-off-by: Danielle Lancashire <dani@builds.terrible.systems>
1 parent 9fa29a7 commit 7121276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ mod integration_tests {
10091009
if cfg!(target_os = "windows") {
10101010
String::from("powershell.exe")
10111011
} else {
1012-
String::from("/bin/bash")
1012+
String::from("bash")
10131013
}
10141014
}
10151015

0 commit comments

Comments
 (0)