tests: suppress retry marker for intermediate attempts

This commit is contained in:
Rainer Gerhards 2026-05-27 17:00:17 +02:00
parent 1b3fe4cdc8
commit 5b7197b2dd
2 changed files with 6 additions and 7 deletions

View File

@ -2503,7 +2503,7 @@ error_exit() {
fi
fi
printf '%s FAIL: Test %s (took %s seconds)\n' "$(tb_timestamp)" "$0" "$(( $(date +%s) - TB_STARTTEST ))"
if [ $exitval -ne 77 ]; then
if [ $exitval -ne 77 ] && [ "$TESTBENCH_SUPPRESS_FAIL_MARKER" != "YES" ]; then
echo $0 > testbench_test_failed_rsyslog
# --- AI AGENT GUIDANCE ---
echo " "

View File

@ -26,10 +26,13 @@ while [ "$attempt" -le "$max_attempts" ]; do
echo "Retrying omfwd load-balancer test (attempt $attempt of $max_attempts) to mitigate TCP buffer timing races."
fi
"$skeleton"
if [ "$attempt" -lt "$max_attempts" ]; then
TESTBENCH_SUPPRESS_FAIL_MARKER=YES "$skeleton"
else
"$skeleton"
fi
result=$?
if [ "$result" -eq 0 ]; then
rm -f testbench_test_failed_rsyslog
if [ "$attempt" -gt 1 ]; then
echo "omfwd load-balancer test passed on retry."
echo "Consider future improvements such as synchronising minitcpsrvr reconnects with omfwd drain notifications to reduce flakiness."
@ -37,10 +40,6 @@ while [ "$attempt" -le "$max_attempts" ]; do
exit 0
fi
if [ "$attempt" -lt "$max_attempts" ]; then
rm -f testbench_test_failed_rsyslog
fi
attempt=$((attempt + 1))
done