Skip to content

Commit

Permalink
Fix order of commands
Browse files Browse the repository at this point in the history
See os-autoinst#49

The regex to include actually needs to be the last argument
  • Loading branch information
perlpunk committed Aug 7, 2024
1 parent 75b80d9 commit 5055fa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions logwarn_openqa
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ $logwarn ${options} -m '\[.*:?(debug|info|warn|error)\]' -p ${file} \
'!\[error\].*cmd returned [0-9]*$' \
`# https://progress.opensuse.org/issues/125459` \
'!\[error\].*naive_verify_failed_return' \
'\[.*:?(warn|error)\]' '!\[.*:?(debug|info)\]' \
`# https://progress.opensuse.org/issues/138536` \
'!\[error\].*Worker [0-9]+ has no heartbeat.*' $@
'!\error\].*heartbeat.*' \
'\[.*:?(warn|error)\]' '!\[.*:?(debug|info)\]' \
$@
2 changes: 1 addition & 1 deletion test_logwarn
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ is-ignored '\[warn\].* Unable to wakeup scheduler: Request timeout'
is-ignored '\[warn\].* fatal: Invalid revision range .*\.\.'
is-ignored '\[warn\] \[pid:[0-9]*\] $'
is-ignored '\[error\].*cmd returned 32768$'
is-ignored '\[error\] Worker 17519 has no heartbeat \(900 seconds\), restarting \(see FAQ for more\)'
is-ignored '\[error\] Worker 17519 has no heartbeat'
done-testing

# explicitly exit with $rc unless we are run by prove
Expand Down

0 comments on commit 5055fa9

Please sign in to comment.