Skip to content

Commit f3ffec2

Browse files
authored
CI: exit when fail any step. (#10579)
1 parent 95314a2 commit f3ffec2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

paddle/fluid/inference/tensorrt/test_engine.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ TEST_F(TensorRTEngineTest, add_layer_multi_dim) {
9898

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

104104
LOG(INFO) << "to get output";

paddle/scripts/paddle_build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ EOF
473473
}
474474

475475
function main() {
476+
set -e
476477
local CMD=$1
477478
init
478479
case $CMD in

paddle/scripts/paddle_docker_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ EOL
5959
if [ ! -d "${HOME}/.ccache" ]; then
6060
mkdir ${HOME}/.ccache
6161
fi
62-
set -x
62+
set -ex
6363
${DOCKER_CMD} run -it \
6464
--name $CONTAINER_ID \
6565
${DOCKER_ENV} \

0 commit comments

Comments
 (0)