mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 06:43:53 -05:00
Allow system Python in sbin
Arch Linux has Python is sbin as well as bin
This commit is contained in:
@@ -24,6 +24,15 @@ load test_helper
|
||||
assert_success "$PYENV_TEST_DIR"
|
||||
}
|
||||
|
||||
#Arch has Python at sbin as well as bin
|
||||
@test "prefix for sbin system" {
|
||||
mkdir -p "${PYENV_TEST_DIR}/sbin"
|
||||
touch "${PYENV_TEST_DIR}/sbin/python"
|
||||
chmod +x "${PYENV_TEST_DIR}/sbin/python"
|
||||
PYENV_VERSION="system" run pyenv-prefix
|
||||
assert_success "$PYENV_TEST_DIR"
|
||||
}
|
||||
|
||||
@test "prefix for system in /" {
|
||||
mkdir -p "${BATS_TEST_DIRNAME}/libexec"
|
||||
cat >"${BATS_TEST_DIRNAME}/libexec/pyenv-which" <<OUT
|
||||
|
||||
Reference in New Issue
Block a user