File tree 1 file changed +6
-3
lines changed
tensorflow/tools/ci_build/builds
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ echo "Python binary path to be used in PIP install-test: ${PYTHON_BIN_PATH} "\
125
125
PIP_WHL_DIR=" pip_test/whl"
126
126
PIP_WHL_DIR=$( abs_path ${PIP_WHL_DIR} ) # Get absolute path
127
127
rm -rf ${PIP_WHL_DIR} && mkdir -p ${PIP_WHL_DIR}
128
- bazel-bin/tensorflow/tools/pip_package/build_pip_package ${PIP_WHL_DIR} &&
128
+ bazel-bin/tensorflow/tools/pip_package/build_pip_package ${PIP_WHL_DIR} || \
129
+ die " build_pip_package FAILED"
129
130
130
131
# Perform installation
131
132
WHL_PATH=$( ls ${PIP_WHL_DIR} /tensorflow* .whl)
@@ -141,8 +142,10 @@ echo "Installing pip whl file: ${WHL_PATH}"
141
142
142
143
# Call pip install twice, first time with --upgrade and second time without it
143
144
# This addresses the sporadic test failures related to protobuf version
144
- ${PYTHON_BIN_PATH} -m pip install -v --user --upgrade ${WHL_PATH} numpy==1.8.2 &&
145
- ${PYTHON_BIN_PATH} -m pip install -v --user ${WHL_PATH} &&
145
+ ${PYTHON_BIN_PATH} -m pip install -v --user --upgrade ${WHL_PATH} numpy==1.8.2 \
146
+ || die " pip install (1st step, with --upgrade) FAILED"
147
+ ${PYTHON_BIN_PATH} -m pip install -v --user ${WHL_PATH} \
148
+ || die " pip install (2nd step, without --upgrade) FAILED"
146
149
147
150
# If NO_TEST_ON_INSTALL is set to any non-empty value, skip all Python
148
151
# tests-on-install and exit right away
You can’t perform that action at this time.
0 commit comments