From 0427eefd029fc558cddce7d54d9beff2b539e189 Mon Sep 17 00:00:00 2001 From: macayu17 Date: Sat, 15 Aug 2026 21:03:29 +0530 Subject: [PATCH] pyenv-binary-save: stub unavailable readelf --- plugins/pyenv-binary/test/save.bats | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/pyenv-binary/test/save.bats b/plugins/pyenv-binary/test/save.bats index bb4e6e8a..6776119a 100644 --- a/plugins/pyenv-binary/test/save.bats +++ b/plugins/pyenv-binary/test/save.bats @@ -86,8 +86,9 @@ platform() { @test "fails when readelf is not available" { create_version "3.12.7" create_stub uname 'case "$1" in -s) echo Linux;; -m) echo x86_64;; esac' + create_path_executable readelf "exit 1" - PATH="$(path_without readelf)" run pyenv-binary-save "3.12.7" "${BATS_TEST_TMPDIR}/dist" + run pyenv-binary-save "3.12.7" "${BATS_TEST_TMPDIR}/dist" assert_failure "pyenv-binary: need readelf to inspect shared libraries" assert [ ! -e "${BATS_TEST_TMPDIR}/dist/3.12.7-$(platform).tar.gz" ] }