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
75
75
esac
76
76
77
77
case ${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 " ;;
80
80
* )
81
81
echo " Invalid or missing python $OPTARG "
82
82
exit 1
@@ -88,7 +88,7 @@ if [[ -z "${COMMAND}" ]]; then
88
88
exit 1
89
89
fi
90
90
91
- DOCKER_CMD=" tools/ci_testing/install_py36.sh && ln -sf ${PYTHON_LIB} /usr/bin/python && ${COMMAND} "
91
+ DOCKER_CMD=" ${ENVIRONMENT_CMD} && ${COMMAND} "
92
92
echo " Docker image: ${DOCKER_IMAGE} "
93
93
echo " Docker command: ${DOCKER_CMD} "
94
94
docker run ${DOCKER_OPTS} \
You can’t perform that action at this time.
0 commit comments