diff --git a/.ci/test_r_package.sh b/.ci/test_r_package.sh index 57aeb7016633..cf2cf30b4dd4 100755 --- a/.ci/test_r_package.sh +++ b/.ci/test_r_package.sh @@ -199,11 +199,8 @@ if grep -q -R "WARNING" "$LOG_FILE_NAME"; then exit -1 fi -if [[ $OS_NAME == "linux" ]] && [[ $R_BUILD_TYPE == "cran" ]]; then - ALLOWED_CHECK_NOTES=2 -else - ALLOWED_CHECK_NOTES=1 -fi +ALLOWED_CHECK_NOTES=2 + NUM_CHECK_NOTES=$( cat ${LOG_FILE_NAME} \ | grep -e '^Status: .* NOTE.*' \