Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
New function checkLogsNoError2
Browse files Browse the repository at this point in the history
  • Loading branch information
joergboe committed Jan 12, 2019
1 parent 6ce6fe1 commit 3b5f91e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,6 @@ Version 3.6.0:
- New utils functions findTokenInFiles, findTokenInDirs, checkTokenIsInFiles, checkTokenIsNotInFiles, checkTokenIsInDirs, checkTokenIsNotInDirs
- New streamsutil functions: getHostList, getHostListVariable, getJobLogDirs, getJobLogDirsVariable, checkLogsNoError
- Correction streamsutil: all TT_ variables set with function setVar to enable export

Version 3.6.1:
- New function checkLogsNoError2, Check if pe log files and pe stdouterr have no error Token ERROR
22 changes: 21 additions & 1 deletion bin/streamsutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1097,11 +1097,31 @@ TTRO_help_checkLogsNoError='
# Exits:
# if called with wrong params
# a file is not readable
if no files are scanned'
# if no files are scanned'
checkLogsNoError() {
isDebug && printDebug "$FUNCNAME $*"
checkTokenIsNotInDirs 'true' 'ERROR' '*' $TTTT_jobLogDirs
}
export -f checkLogsNoError

TTRO_help_checkLogsNoError2='
# Function checkLogsNoError2
# Check if pe log files and pe stdouterr have no error Token ERROR
# Parameters:
# TTTT_jobnoCanceled - if true, the check done
# TTTT_jobLogDirs - The list with the log dirs
# Returns:
# true
# Set failure if the token was in on of the log files
# Exits:
# if called with wrong params
# a file is not readable
# if no files are scanned'
checkLogsNoError2() {
isDebug && printDebug "$FUNCNAME $*"
checkTokenIsNotInDirs 'true' 'ERROR' 'pe.*' $TTTT_jobLogDirs
checkTokenIsNotInDirs 'true' 'ERROR' 'pec.pe*' $TTTT_jobLogDirs
}
export -f checkLogsNoError2

:
2 changes: 1 addition & 1 deletion bin/version.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare -xr TTRO_version="3.6.0"
declare -xr TTRO_version="3.6.1"

0 comments on commit 3b5f91e

Please sign in to comment.