File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77#
88
99THISDIR=$( dirname ${BASH_SOURCE[0]} )
10- PYTHON_VERSION=" 3.12"
11- if [[ ! -f " /usr/bin/python$PYTHON_VERSION " ]]; then
12- PYTHON_VERSION=" 3.13"
10+ if python3 -c ' import sys; sys.exit(0 if sys.version_info < (3,13) else 1)' ; then
11+ PYTHON_VERSION=" 3.12"
12+ else
13+ PYTHON_VERSION=" 3"
1314fi
14-
15- cd " ${THISDIR} " && python3.12 -m pytest -s -rA --showlocals -vv test_ocp_* .py
15+ cd " ${THISDIR} " && " python${PYTHON_VERSION} " -m pytest -s -rA --showlocals -vv test_ocp_* .py
Original file line number Diff line number Diff line change 88
99THISDIR=$( dirname ${BASH_SOURCE[0]} )
1010
11- PYTHON_VERSION=" 3.12"
12- if [[ ! -f " /usr/bin/python$PYTHON_VERSION " ]]; then
13- PYTHON_VERSION=" 3.13"
11+ if python3 -c ' import sys; sys.exit(0 if sys.version_info < (3,13) else 1)' ; then
12+ PYTHON_VERSION=" 3.12"
13+ else
14+ PYTHON_VERSION=" 3"
1415fi
1516cd " ${THISDIR} " && " python${PYTHON_VERSION} " -m pytest -s -rA --showlocals -vv test_container_* .py
You can’t perform that action at this time.
0 commit comments