mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
1) Remove useless touch
2) Add explicit shebang line to executable for testing
This commit is contained in:
parent
b8885e4fe2
commit
1b35cfaa2c
1 changed files with 3 additions and 2 deletions
|
@ -26,8 +26,9 @@ load test_helper
|
|||
|
||||
@test "prefix for system in /" {
|
||||
mkdir -p "${BATS_TEST_DIRNAME}/libexec"
|
||||
touch "${BATS_TEST_DIRNAME}/libexec/pyenv-which"
|
||||
echo "echo /bin/python" >"${BATS_TEST_DIRNAME}/libexec/pyenv-which"
|
||||
{ echo "#!/bin/sh"
|
||||
echo "echo /bin/python"
|
||||
} >"${BATS_TEST_DIRNAME}/libexec/pyenv-which"
|
||||
chmod +x "${BATS_TEST_DIRNAME}/libexec/pyenv-which"
|
||||
PYENV_VERSION="system" run pyenv-prefix
|
||||
assert_success "/"
|
||||
|
|
Loading…
Reference in a new issue