mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-06-15 23:22:50 +02:00
Apply suggested fix to tests/mmexternal-response-too-long.sh from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
parent
591e147fae
commit
beaeb08105
@ -61,8 +61,8 @@ wait_shutdown
|
||||
content_check "too-long-message-1"
|
||||
content_check "too-long-message-2"
|
||||
|
||||
start_count=$(grep -c '^Starting ' "$RSYSLOG_DYNNAME.side" | awk '{print $1}')
|
||||
recover_count=$(grep -c '^Recovered too-long-message-2$' "$RSYSLOG_DYNNAME.side" | awk '{print $1}')
|
||||
start_count=$(grep -c '^Starting ' "$RSYSLOG_DYNNAME.side" || true)
|
||||
recover_count=$(grep -c '^Recovered too-long-message-2$' "$RSYSLOG_DYNNAME.side" || true)
|
||||
|
||||
if (( start_count < 2 )); then
|
||||
echo "expected helper restart, but start count was $start_count"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user