diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 14bd5a7ae8932601872af6e1218d6bf8161ab6fb..4c74653b7a06aa583ec7b64aa3d724f46ad0fbe1 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -563,12 +563,12 @@ EOF if [ ${NIGHTLY_MODE:-OFF} == "ON" ]; then nightly_label="" else - nightly_label="RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY" + nightly_label="(RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY)" echo "=========================================" echo "Unittests with nightly labels are only run at night" echo "=========================================" fi - ctest -E "($disable_ut_quickly)" -LE "($nightly_label)" --output-on-failure -j $2 | tee $tmpfile + ctest -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile failed_test_lists='' collect_failed_tests mactest_error=0