fix possible side effect

This commit is contained in:
Ivan Pozdeev 2021-09-15 22:55:09 +03:00
parent 7f45f1eb9d
commit cabdc45181

View file

@ -26,11 +26,10 @@ load test_helper
#Arch has Python at sbin as well as bin #Arch has Python at sbin as well as bin
@test "prefix for sbin system" { @test "prefix for sbin system" {
export PATH="${PYENV_TEST_DIR}/sbin:$PATH"
mkdir -p "${PYENV_TEST_DIR}/sbin" mkdir -p "${PYENV_TEST_DIR}/sbin"
touch "${PYENV_TEST_DIR}/sbin/python" touch "${PYENV_TEST_DIR}/sbin/python"
chmod +x "${PYENV_TEST_DIR}/sbin/python" chmod +x "${PYENV_TEST_DIR}/sbin/python"
PYENV_VERSION="system" run pyenv-prefix PATH="${PYENV_TEST_DIR}/sbin:$PATH" PYENV_VERSION="system" run pyenv-prefix
assert_success "$PYENV_TEST_DIR" assert_success "$PYENV_TEST_DIR"
} }