ci: using python3 to tun target test

This commit is contained in:
Chen Yudong
2021-03-16 11:41:29 +08:00
committed by bot
parent c8d15588e5
commit fa270d72c7
14 changed files with 36 additions and 42 deletions

View File

@@ -1,14 +1,7 @@
#!/usr/bin/env bash
# Regexp for matching job names which are incompatible with Python 3
# - UT_009_ - multi-device tests are not compatible
# - UT_014_ - multi-device tests are not compatible
# - UT_017_ - multi-device tests are not compatible
py3_incomp='UT_009_|UT_013_|UT_014_|UT_017_'
if [ -z ${PYTHON_VER+x} ] || [[ $CI_JOB_NAME =~ $py3_incomp ]]; then
# Use this version of the Python interpreter if it was not defined before or
# the given job is not compatible with Python 3
if [ -z ${PYTHON_VER+x} ]; then
# Use this version of the Python interpreter if it was not defined before
PYTHON_VER=2.7.15
fi