Skip to content

Commit 755ad98

Browse files
committed
fix bug for added ut check
1 parent ed97be0 commit 755ad98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,8 +1170,9 @@ set -x
11701170
fi
11711171
if [ -a "$PADDLE_ROOT/added_ut" ];then
11721172
added_uts=^$(awk BEGIN{RS=EOF}'{gsub(/\n/,"$|^");print}' $PADDLE_ROOT/added_ut)$
1173-
ctest -R "(${added_uts})" --output-on-failure --repeat-until-fail 3 --timeout 15;added_ut_error=$?
1174-
if [ "$added_ut_error" != 0 ];then
1173+
env CUDA_VISIBLE_DEVICES=0 ctest -R "(${added_uts})" -LE "RUN_TYPE=DIST|RUN_TYPE=EXCLUSIVE" --output-on-failure --repeat-until-fail 3 --timeout 15;added_ut_error=$?
1174+
ctest -R "(${added_uts})" -L "RUN_TYPE=DIST|RUN_TYPE=EXCLUSIVE" --output-on-failure --repeat-until-fail 3 --timeout 15;added_ut_error_1=$?
1175+
if [ "$added_ut_error" != 0 ] && [ "$added_ut_error_1" != 0 ];then
11751176
echo "========================================"
11761177
echo "Added UT should not exceed 15 seconds"
11771178
echo "========================================"

0 commit comments

Comments
 (0)