mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Add explicit shebang to executable for testing
This commit is contained in:
parent
8eefa41a4d
commit
83e874a165
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ load test_helper
|
|||
|
||||
@test "prefix for system in /" {
|
||||
mkdir -p "${BATS_TEST_DIRNAME}/libexec"
|
||||
echo "echo /bin/ruby" >"${BATS_TEST_DIRNAME}/libexec/rbenv-which"
|
||||
{ echo "#!/bin/sh"
|
||||
echo "echo /bin/ruby"
|
||||
} >"${BATS_TEST_DIRNAME}/libexec/rbenv-which"
|
||||
chmod +x "${BATS_TEST_DIRNAME}/libexec/rbenv-which"
|
||||
RBENV_VERSION="system" run rbenv-prefix
|
||||
assert_success "/"
|
||||
|
|
Loading…
Reference in a new issue