[sagemath] 01/02: Filter out false positives when checking the dochtml build log for errors

Ximin Luo infinity0 at debian.org
Sat Jun 17 13:15:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository sagemath.

commit 864f2d14e712d6c09b558e3d01cd7c8037d97505
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sat Jun 17 15:12:07 2017 +0200

    Filter out false positives when checking the dochtml build log for errors
---
 debian/rules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index f5cff26..8ac03b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -89,7 +89,8 @@ dh_auto_build-stamp: prune
 check-dochtml-log:
 	# Sometimes, parts of the docbuild fail with MemoryError or OSError but
 	# Sage doesn't detect this. Here we detect it and fail the build if so.
-	! grep Error sage/logs/dochtml.log
+	# Also filter out some false positives that are not hard errors.
+	! (grep Error sage/logs/dochtml.log | grep -v "citation not found: .*Error.*")
 
 # We build everything in both -arch and -indep because the tests need the docs.
 # TODO: as described in #849150, we can make this more efficient if we figure

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list