Skip to content

Commit cf2c42a

Browse files
authored
fix exec nightly error on mac (#28567)
1 parent 110febd commit cf2c42a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/scripts/paddle_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,12 +563,12 @@ EOF
563563
if [ ${NIGHTLY_MODE:-OFF} == "ON" ]; then
564564
nightly_label=""
565565
else
566-
nightly_label="RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY"
566+
nightly_label="(RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY)"
567567
echo "========================================="
568568
echo "Unittests with nightly labels are only run at night"
569569
echo "========================================="
570570
fi
571-
ctest -E "($disable_ut_quickly)" -LE "($nightly_label)" --output-on-failure -j $2 | tee $tmpfile
571+
ctest -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile
572572
failed_test_lists=''
573573
collect_failed_tests
574574
mactest_error=0

0 commit comments

Comments
 (0)