Skip to content

Commit 7fe0aeb

Browse files
committed
chore: drop python2 references in testenv
1 parent 54f2907 commit 7fe0aeb

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

tools/build_test_env.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ try() { "$@" || fatal "'$@' failed"; }
2727

2828
REUSE_CONTAINER=
2929
NOVENV=
30-
PY_VER=3
3130
API_VER=4
3231
GITLAB_IMAGE="gitlab/gitlab-ce"
3332
GITLAB_TAG="latest"
34-
while getopts :knp:a: opt "$@"; do
33+
VENV_CMD="python3 -m venv"
34+
35+
while getopts :kn:a: opt "$@"; do
3536
case $opt in
3637
k) REUSE_CONTAINER=1;;
3738
n) NOVENV=1;;
38-
p) PY_VER=$OPTARG;;
3939
a) API_VER=$OPTARG;;
4040
t) GITLAB_TAG=$OPTARG;;
4141
:) fatal "Option -${OPTARG} requires a value";;
@@ -44,12 +44,6 @@ while getopts :knp:a: opt "$@"; do
4444
esac
4545
done
4646

47-
case $PY_VER in
48-
2) VENV_CMD=virtualenv;;
49-
3) VENV_CMD="python3 -m venv";;
50-
*) fatal "Wrong python version (2 or 3)";;
51-
esac
52-
5347
case $API_VER in
5448
4) ;;
5549
*) fatal "Wrong API version (4 only)";;

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ commands =
4545
omit = *tests*
4646

4747
[testenv:cli_func_v4]
48-
commands = {toxinidir}/tools/functional_tests.sh -a 4 -p 2
48+
commands = {toxinidir}/tools/functional_tests.sh -a 4
4949

5050
[testenv:py_func_v4]
51-
commands = {toxinidir}/tools/py_functional_tests.sh -a 4 -p 2
51+
commands = {toxinidir}/tools/py_functional_tests.sh -a 4

0 commit comments

Comments
 (0)