From cbba86a8291fc183ce0c9bbc71a0fc3bc0af799d Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sun, 21 Jul 2024 05:55:34 +0300 Subject: [PATCH] Fix tests failing if plugins are installed Drop the failing test in favor of a better-written test that also tests the same --- test/pyenv.bats | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/pyenv.bats b/test/pyenv.bats index e7e8b419..ce22a447 100644 --- a/test/pyenv.bats +++ b/test/pyenv.bats @@ -46,12 +46,7 @@ load test_helper assert_output "pyenv: cannot change working directory to \`$dir'" } -@test "adds its own libexec to PATH" { - run pyenv echo "PATH" - assert_success "${BATS_TEST_DIRNAME%/*}/libexec:${BATS_TEST_DIRNAME%/*}/plugins/python-build/bin:$PATH" -} - -@test "adds plugin bin dirs to PATH" { +@test "adds its own libexec and plugin bin dirs to PATH" { mkdir -p "$PYENV_ROOT"/plugins/python-build/bin mkdir -p "$PYENV_ROOT"/plugins/pyenv-each/bin run pyenv echo -F: "PATH"