mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 15:23:53 -05:00
Keep using original PATH ordering in test_helper
This commit is contained in:
@@ -25,12 +25,13 @@ load test_helper
|
||||
}
|
||||
|
||||
@test "prefix for system in /" {
|
||||
mkdir -p "${PYENV_TEST_DIR}/bin"
|
||||
touch "${PYENV_TEST_DIR}/bin/pyenv-which"
|
||||
echo "echo /bin/python" >"${PYENV_TEST_DIR}/bin/pyenv-which"
|
||||
chmod +x "${PYENV_TEST_DIR}/bin/pyenv-which"
|
||||
mkdir -p "${BATS_TEST_DIRNAME}/libexec"
|
||||
touch "${BATS_TEST_DIRNAME}/libexec/pyenv-which"
|
||||
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 "/"
|
||||
rm -f "${BATS_TEST_DIRNAME}/libexec/pyenv-which"
|
||||
}
|
||||
|
||||
@test "prefix for invalid system" {
|
||||
|
||||
Reference in New Issue
Block a user