Skip to content

Commit 40347a0

Browse files
committed
Fix version matching when testing dists
PiperOrigin-RevId: 862081824 Change-Id: If1dcda43d2e37950c8a3729a4c70f0d056f61291 (cherry picked from commit 0ab71bc)
1 parent 16bc5b4 commit 40347a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/distribution/test_dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ enable_py_version() {
7979

8080
# The latest installed Python version that matches the partial version number
8181
# (e.g. "3.9.5").
82-
local version="$(pyenv versions --bare | grep "${partial_version}" | tail -1)"
82+
local version="$(pyenv versions --bare | grep "${partial_version}\." | tail -1)"
8383
if [[ -z "${version}" ]]; then
8484
# Install the latest available non-dev version.
8585
version="$(pyenv install --list | grep " ${partial_version}\." | tail -1 \

0 commit comments

Comments
 (0)