From 7998159daa9f60d80ce4825fd024240b63949f13 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sat, 20 Dec 2025 21:57:39 +0300 Subject: [PATCH] tests: fix integration tests for Bash and Fish --- test/rehash.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rehash.bats b/test/rehash.bats index cda2a074..f7462f04 100755 --- a/test/rehash.bats +++ b/test/rehash.bats @@ -109,7 +109,7 @@ hash -r 2>/dev/null || true" @test "sh-rehash in bash (integration)" { create_alt_executable_in_version "3.4" "python" - run eval "$(pyenv-sh-rehash)" + PYENV_SHELL=bash run eval "$(pyenv-sh-rehash)" assert_success assert [ -x "${PYENV_ROOT}/shims/python" ] } @@ -123,7 +123,7 @@ hash -r 2>/dev/null || true" @test "sh-rehash in fish (integration)" { command -v fish >/dev/null || skip "-- fish not installed" create_alt_executable_in_version "3.4" "python" - run fish -Nc "eval (pyenv-sh-rehash)" + PYENV_SHELL=fish fish -Nc "source (pyenv-sh-rehash | psub)" assert_success assert [ -x "${PYENV_ROOT}/shims/python" ] }