9154775ff6351598133c939947fe9355102b4a28
steve
  Mon Nov 26 11:11:13 2012 -0800
Modified script so it doesn't print output unless it actually finds broken links; will make the output much easier to interpret for assemblies with a large number of tables
diff --git src/utils/qa/checkTrackUiLinks.csh src/utils/qa/checkTrackUiLinks.csh
index 7abaf8b..f0983ba 100755
--- src/utils/qa/checkTrackUiLinks.csh
+++ src/utils/qa/checkTrackUiLinks.csh
@@ -82,33 +82,36 @@
 
 # process "all" choice
 if ("all" == $tableinput) then
   set tables=`getField.csh $db trackDb tableName $machine \
      | grep -v tableName`
   set target="$baseUrl/cgi-bin/hgGateway?hgsid=$hgsid&db=$db"
   # check description page if doing all of an assambly
   echo
   echo "description.html page:"
   echo "======================"
   htmlCheck checkLinks "$target" 
   echo
 endif
 
 foreach table ($tables)
-  echo
-  echo $table
-  echo "============="
   # 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" 
+  htmlCheck checkLinks "$target" >& error
   # slow it down if hitting the RR
   if ( "true" == $rr ) then
     sleep 2
   endif 
+  if ( `wc -w error | awk '{print $1}'` != 0 ) then
+    echo
+    echo $table
+    echo "============="
+    cat error
+    rm -f error
+  endif
 end 
 echo
-
