File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ case ${DEVICE} in
7575esac
7676
7777case ${PYTHON} in
78- py2) PYTHON_LIB= /usr/bin/python2;;
79- py3) PYTHON_LIB=/ usr/bin/python3;;
78+ py2) ENVIRONMENT_CMD= " ln -sf /usr/bin/python2 /usr/bin/python " ;;
79+ py3) ENVIRONMENT_CMD= " tools/ci_testing/install_py36.sh && ln -sf / usr/bin/python3.6 /usr/bin/python " ;;
8080 * )
8181 echo " Invalid or missing python $OPTARG "
8282 exit 1
@@ -88,7 +88,7 @@ if [[ -z "${COMMAND}" ]]; then
8888 exit 1
8989fi
9090
91- DOCKER_CMD=" tools/ci_testing/install_py36.sh && ln -sf ${PYTHON_LIB} /usr/bin/python && ${COMMAND} "
91+ DOCKER_CMD=" ${ENVIRONMENT_CMD} && ${COMMAND} "
9292echo " Docker image: ${DOCKER_IMAGE} "
9393echo " Docker command: ${DOCKER_CMD} "
9494docker run ${DOCKER_OPTS} \
You can’t perform that action at this time.
0 commit comments