Commit 6b9a9807 authored by Tomasz Zawadzki's avatar Tomasz Zawadzki Committed by Jim Harris
Browse files

autobuild: skip doxygen 1.8.20 false positives

Doxygen 1.8.20 contains false positives that are fixed
in later version. Right now if that version of doxygen is used
in tests, any error is ignored. Please see:
(63330f68)autobuild: Ignore warnings comming from doxygen 1.8.20

The false positive is realted to:
https://github.com/doxygen/doxygen/issues/7948



This patch ignores only warnings releated to "\ilinebr"
processing in doxygen, reporting any other warnings.

Signed-off-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I19595f35a2e6f66b9917133a19cf45394a240dbd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10388


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: default avatarMonica Kenguva <monica.kenguva@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarMichal Berger <michallinuxstuff@gmail.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent f36c033c
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -273,10 +273,18 @@ function build_doc() {

	$MAKE -C "$rootdir"/doc --no-print-directory $MAKEFLAGS &> "$out"/doxygen.log
	if [ -s "$out"/doxygen.log ]; then
		if [[ "$doxygenv" != "1.8.20" ]]; then
			cat "$out"/doxygen.log
			echo "Doxygen errors found!"
		eq "$doxygenv" 1.8.20 || exit 1
		echo "Doxygen $doxygenv detected, all warnings are potentially false positives, continuing the test"
			exit 1
		fi
		# Doxygen 1.8.20 produces false positives, see:
		# https://github.com/doxygen/doxygen/issues/7948
		if grep -v "\ilinebr" "$out"/doxygen.log; then
			echo "Doxygen errors found!"
			exit 1
		fi
		echo "Doxygen $doxygenv detected. No warnings except false positives, continuing the test"
	fi
	if hash pdflatex 2> /dev/null; then
		$MAKE -C "$rootdir"/doc/output/latex --no-print-directory $MAKEFLAGS &>> "$out"/doxygen.log