Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "CI: rerun failed tests. (#10536)" #10543

Merged
merged 1 commit into from
May 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion paddle/fluid/inference/tensorrt/test_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ TEST_F(TensorRTEngineTest, add_layer_multi_dim) {

float x_v[2] = {1.0, 2.0};
engine_->SetInputFromCPU("x", reinterpret_cast<void*>(&x_v),
2 * sizeof(float));
2 * sizeof(float));
engine_->Execute(1);

LOG(INFO) << "to get output";
Expand Down
7 changes: 0 additions & 7 deletions paddle/scripts/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,7 @@ function run_test() {
Running unit tests ...
========================================
EOF
set +e
ctest --output-on-failure
if [ $? != 0 ]; then
set -e
ctest --output-on-failure --rerun-failed
set +e
fi
set -e
# make install should also be test when unittest
make install -j `nproc`
pip install /usr/local/opt/paddle/share/wheels/*.whl
Expand Down
8 changes: 0 additions & 8 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,7 @@ function run_test() {
Running unit tests ...
========================================
EOF
set +e
ctest --output-on-failure
if [ $? != 0 ]; then
set -e
ctest --output-on-failure --rerun-failed
set +e
fi
set -e
# make install should also be test when unittest
make install -j `nproc`
pip install /usr/local/opt/paddle/share/wheels/*.whl
Expand Down Expand Up @@ -474,7 +467,6 @@ EOF
}

function main() {
set -e
local CMD=$1
init
case $CMD in
Expand Down
2 changes: 1 addition & 1 deletion paddle/scripts/paddle_docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ EOL
if [ ! -d "${HOME}/.ccache" ]; then
mkdir ${HOME}/.ccache
fi
set -ex
set -x
${DOCKER_CMD} run -it \
--name $CONTAINER_ID \
${DOCKER_ENV} \
Expand Down