--- a/tests/sanity.sh
+++ b/tests/sanity.sh
@@ -82,7 +82,12 @@
 tested=`expr $tested + 1`
 
 # check that log files have only one line (the command)
+# discard references to launchapd bug 1466210
 nok=0
+DISCARD_PATTERN_1='Please fix https://bugs.launchpad.net/ubuntu/+source/gtk-doc/+bug/1466210 . For now run:
+gunzip /usr/share/gtk-doc/html/.\+/.\+.devhelp2.gz
+
+'
 for file in $dir/*/docs/gtkdoc-*.log; do
   expected_lines="1"
   # adjust for known files
@@ -101,7 +106,7 @@
     ;;
   esac
 
-  lines=`wc -l $file | cut -d' ' -f1`
+  lines=`grep -v -x -G -e "$DISCARD_PATTERN_1" $file | wc -l | cut -d' ' -f1`
   if test $lines -gt $expected_lines; then
     echo 1>&2 "expected no more than $expected_lines log line in $file, but got $lines"
     nok=`expr $nok + 1`;
