From 5221ae95a2cd200d939d506987efa032bc7f30f4 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 22 Oct 2024 12:09:42 +0800 Subject: [PATCH] Correct the python version test. --- tests/test_python_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_python_install.sh b/tests/test_python_install.sh index 58f8f761..8d3df5e2 100644 --- a/tests/test_python_install.sh +++ b/tests/test_python_install.sh @@ -20,7 +20,7 @@ then # CPython/PyPy version implementer_version=${BASH_REMATCH[2]:-$cpython_version} fi -python_mm="${cpython_version:0:1}.${cpython_version:2:1}" +python_mm=$(echo $cpython_version | awk -F "." '{printf "%d.%d", $1, $2}') # extract implementation prefix and version if [[ "$MB_PYTHON_VERSION" =~ (pypy[0-9\.]*-)?([0-9\.]+) ]]; then