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:
Rainer Gerhards 2026-05-29 16:01:08 +02:00 committed by GitHub
parent 591e147fae
commit beaeb08105
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"