summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build_test_env.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/build_test_env.sh b/tools/build_test_env.sh
index 7468a9a..3885c3f 100755
--- a/tools/build_test_env.sh
+++ b/tools/build_test_env.sh
@@ -27,15 +27,14 @@ try() { "$@" || fatal "'$@' failed"; }
REUSE_CONTAINER=
NOVENV=
-PY_VER=3
API_VER=4
GITLAB_IMAGE="gitlab/gitlab-ce"
GITLAB_TAG="latest"
+VENV_CMD="python3 -m venv"
while getopts :knp:a: opt "$@"; do
case $opt in
k) REUSE_CONTAINER=1;;
n) NOVENV=1;;
- p) PY_VER=$OPTARG;;
a) API_VER=$OPTARG;;
t) GITLAB_TAG=$OPTARG;;
:) fatal "Option -${OPTARG} requires a value";;
@@ -44,12 +43,6 @@ while getopts :knp:a: opt "$@"; do
esac
done
-case $PY_VER in
- 2) VENV_CMD=virtualenv;;
- 3) VENV_CMD="python3 -m venv";;
- *) fatal "Wrong python version (2 or 3)";;
-esac
-
case $API_VER in
4) ;;
*) fatal "Wrong API version (4 only)";;