fix integration test

This commit is contained in:
Ivan Pozdeev 2025-12-20 20:57:09 +03:00
parent 37fb8a0925
commit 0b284c8d44
No known key found for this signature in database
GPG key ID: FB6A628DCF06DCD7

View file

@ -137,7 +137,7 @@ hash -r 2>/dev/null || true"
@test "sh-rehash in powershell (integration)" {
command -v pwsh >/dev/null || skip "-- powershell not installed"
create_alt_executable_in_version "3.4" "python"
run pwsh -NoProfile -Command "iex (&pyenv-sh-rehash)"
run pwsh -nop -c 'iex ((&pyenv-sh-rehash) -join "\`n")'
assert_success
assert [ -x "${PYENV_ROOT}/shims/python" ]
}