File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,16 @@ if [ "$ROLE" = "public" ]; then
8888 # It's expected to encounter a 401 for the login page as we supply the wrong password
8989 EXPECTED_HTTP_CODES=" $EXPECTED_HTTP_CODES \|401"
9090fi
91+
92+ HTTP_404_IGNORED=" robots.txt\|imgBase.replace"
93+
9194set +e
92- NUM_ERRORS=$( grep -v " HTTP/1.1\" \($EXPECTED_HTTP_CODES \)" /var/log/nginx/domjudge.log | grep -v " robots.txt " -c; if [ " $? " -gt 1 ]; then exit 127; fi)
95+ NUM_ERRORS=$( grep -v " HTTP/1.1\" \($EXPECTED_HTTP_CODES \)" /var/log/nginx/domjudge.log | grep -v " ${HTTP_404_IGNORED} " -c; if [ " $? " -gt 1 ]; then exit 127; fi)
9396set -e
9497echo " $NUM_ERRORS "
9598
9699if [ " $NUM_ERRORS " -ne 0 ]; then
97- grep -v " HTTP/1.1\" \($EXPECTED_HTTP_CODES \)" /var/log/nginx/domjudge.log | grep -v " robots.txt "
100+ grep -v " HTTP/1.1\" \($EXPECTED_HTTP_CODES \)" /var/log/nginx/domjudge.log | grep -v " ${HTTP_404_IGNORED} "
98101 exit 1
99102fi
100103section_end
You can’t perform that action at this time.
0 commit comments