Skip to content

Commit 3dc41cd

Browse files
committed
Call all supported python version.
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 8643b65 commit 3dc41cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/run-pytest

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@
88

99
THISDIR=$(dirname ${BASH_SOURCE[0]})
1010

11-
cd "${THISDIR}" && python3.12 -m pytest -s -rA --showlocals -vv test_container_*.py
11+
PYTHON_VERSION="3.12"
12+
if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then
13+
PYTHON_VERSION="3"
14+
fi
15+
16+
cd "${THISDIR}" && "python${PYTHON_VERSION}" -m pytest -s -rA --showlocals -vv test_container_*.py

0 commit comments

Comments
 (0)