We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e6877 commit 230a7fcCopy full SHA for 230a7fc
tools/run_docker.sh
@@ -75,8 +75,8 @@ case ${DEVICE} in
75
esac
76
77
case ${PYTHON} in
78
- py2) PYTHON_LIB=/usr/bin/python2;;
79
- py3) PYTHON_LIB=/usr/bin/python3;;
+ py2) ENVIRONMENT_CMD="ln -sf /usr/bin/python2 /usr/bin/python";;
+ py3) ENVIRONMENT_CMD="tools/ci_testing/install_py36.sh && ln -sf /usr/bin/python3.6 /usr/bin/python";;
80
*)
81
echo "Invalid or missing python $OPTARG"
82
exit 1
@@ -88,7 +88,7 @@ if [[ -z "${COMMAND}" ]]; then
88
89
fi
90
91
-DOCKER_CMD="tools/ci_testing/install_py36.sh && ln -sf ${PYTHON_LIB} /usr/bin/python && ${COMMAND}"
+DOCKER_CMD="${ENVIRONMENT_CMD} && ${COMMAND}"
92
echo "Docker image: ${DOCKER_IMAGE}"
93
echo "Docker command: ${DOCKER_CMD}"
94
docker run ${DOCKER_OPTS} \
0 commit comments