8c5d0b357dc1d9cc27b5a1a63c7b37a93247343e
kuhn
  Wed Nov 28 15:18:31 2012 -0800
removed reporting of internal anchors not found
diff --git src/utils/qa/checkTrackUiLinks.csh src/utils/qa/checkTrackUiLinks.csh
index d0a9d27..8061153 100755
--- src/utils/qa/checkTrackUiLinks.csh
+++ src/utils/qa/checkTrackUiLinks.csh
@@ -95,43 +95,46 @@
     cat error
     @ errorCount = $errorCount + 1
   endif
   rm -f error
 endif
 
 foreach table ($tables)
   # check to see if the table exists on the machine
   getField.csh $db trackDb tableName $machine | grep -w $table > /dev/null
   if ( $status ) then
     echo "no such track"
     continue
   endif
   set target="$baseUrl/cgi-bin/hgTrackUi?hgsid=$hgsid&db=$db&g=$table"
   htmlCheck checkLinks "$target" >& error
+  # trap internal same-page anchors and discard
+  cat error | egrep -v "doesn't exist" > error2
+  mv error2 error
   # slow it down if hitting the RR
   if ( "true" == $rr ) then
     sleep 2
   endif
   if ( `wc -w error | awk '{print $1}'` != 0 ) then
     if ( `cat error` != "403 from http://hgwbeta.cse.ucsc.edu/cgi-bin/" ) then
       echo
       echo $table
       echo "============="
       cat error
       @ errorCount = $errorCount + 1
     endif
   endif
   rm -f error
 end
 echo
 echo "Summary"
 echo "======="
 if ( $errorCount > 0) then
   if ( $errorCount == 1) then
-    echo $errorCount "error found"
+    echo $errorCount "table with error(s) found"
   else
-    echo $errorCount "errors found"
+    echo $errorCount "tables with errors found"
   endif
 else
   echo "No errors found!"
 endif
 echo
