f6c2a19a73b7f191470115d4c5c6bf8ea9f24895 mspeir Fri Jan 13 11:30:29 2017 -0800 Minor tweak to usage message for runQaAutoTrack.sh, refs #12561 diff --git src/utils/qa/runQaAutoTrack.sh src/utils/qa/runQaAutoTrack.sh index b7a4dff..6fde56f 100755 --- src/utils/qa/runQaAutoTrack.sh +++ src/utils/qa/runQaAutoTrack.sh @@ -16,35 +16,38 @@ # Runs day after track is supposed # to be updated for most tracks # ################################ # Set current day of the week # Needed to determine which tracks to test dayOfWeek=$(date +%A) # Set date used to delete logs older than this. # Currently set to 6mo ago logTooOld=$(date --date="-6 months" +%F) # Where qaAutoTrack is placing the results logDir="" usage=""" -Runs script qaAutoTrack.sh for various autopushed tracks.\n -Runs day after track is supposed to be updated for most tracks.\n\n -usage:`basename $0` go logDirectory\n\n -logDirectory is directory where output files are being placed by qaAutoTrack.sh. -This script will remove files older than 6 months from that directory. +Runs script qaAutoTrack.sh for various autopushed tracks.\nWill +remove log files older than six months from log directory\nfor +qaAutoTrack.sh. Log directory defaults to\n +/usr/local/apache/htdocs-genecats/qa/test-results/qaAutoTrackLogs +\n\n +usage:`basename $0` go logDirectory +\n\nlogDirectory is directory where output files are being placed\nby +qaAutoTrack.sh if it's different that the default listed above.\n """ # Print really basic usage statement if (( $# < 1 )) || (( $# > 2 )) then echo -e $usage exit 1 elif (( $# == 1 )) then runScript=$1 elif (( $# == 2 )) then # Check if logDirectory exists if [ -d $2 ] then runScript="$1"