提交 dcb77813 编写于 作者: X Xin Pan

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

This reverts commit 0446220e.

Reason:

Rerun failed test hides flaky test.
Flaky test can be bugs, for example, race condition.
Test shouldn't be flaky, if a test is flaky, it should be fixed.
上级 0446220e
...@@ -98,7 +98,7 @@ TEST_F(TensorRTEngineTest, add_layer_multi_dim) { ...@@ -98,7 +98,7 @@ TEST_F(TensorRTEngineTest, add_layer_multi_dim) {
float x_v[2] = {1.0, 2.0}; float x_v[2] = {1.0, 2.0};
engine_->SetInputFromCPU("x", reinterpret_cast<void*>(&x_v), engine_->SetInputFromCPU("x", reinterpret_cast<void*>(&x_v),
2 * sizeof(float)); 2 * sizeof(float));
engine_->Execute(1); engine_->Execute(1);
LOG(INFO) << "to get output"; LOG(INFO) << "to get output";
......
...@@ -100,14 +100,7 @@ function run_test() { ...@@ -100,14 +100,7 @@ function run_test() {
Running unit tests ... Running unit tests ...
======================================== ========================================
EOF EOF
set +e
ctest --output-on-failure 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 should also be test when unittest
make install -j `nproc` make install -j `nproc`
pip install /usr/local/opt/paddle/share/wheels/*.whl pip install /usr/local/opt/paddle/share/wheels/*.whl
......
...@@ -299,14 +299,7 @@ function run_test() { ...@@ -299,14 +299,7 @@ function run_test() {
Running unit tests ... Running unit tests ...
======================================== ========================================
EOF EOF
set +e
ctest --output-on-failure 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 should also be test when unittest
make install -j `nproc` make install -j `nproc`
pip install /usr/local/opt/paddle/share/wheels/*.whl pip install /usr/local/opt/paddle/share/wheels/*.whl
...@@ -474,7 +467,6 @@ EOF ...@@ -474,7 +467,6 @@ EOF
} }
function main() { function main() {
set -e
local CMD=$1 local CMD=$1
init init
case $CMD in case $CMD in
......
...@@ -59,7 +59,7 @@ EOL ...@@ -59,7 +59,7 @@ EOL
if [ ! -d "${HOME}/.ccache" ]; then if [ ! -d "${HOME}/.ccache" ]; then
mkdir ${HOME}/.ccache mkdir ${HOME}/.ccache
fi fi
set -ex set -x
${DOCKER_CMD} run -it \ ${DOCKER_CMD} run -it \
--name $CONTAINER_ID \ --name $CONTAINER_ID \
${DOCKER_ENV} \ ${DOCKER_ENV} \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册