From 21e65b8742ab358ba45fbb56cb3041019ed9a7d2 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sat, 15 Jun 2024 23:11:53 +0100 Subject: [PATCH] Relax the strictness of this check a little, to avoid false failures on heavily loaded systems. --- tests/Display_-_--numeric_--timer.test | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Display_-_--numeric_--timer.test b/tests/Display_-_--numeric_--timer.test index 2efbcf7..0c8d4a0 100755 --- a/tests/Display_-_--numeric_--timer.test +++ b/tests/Display_-_--numeric_--timer.test @@ -15,20 +15,20 @@ lineCount=$(wc -l < "${workFile1}" | tr -dc '0-9') timesCount=$(tr ',' '.' < "${workFile1}" | awk '{print int(10*$1)}' | sort -n | uniq | wc -l | tr -dc '0-9') finalPercentage=$(sed -n '$p' < "${workFile1}" | awk '{print $2}') -# The number of output lines should be >8 and <13, and the number of -# different elapsed times should be at least 7. The last percentage should +# The number of output lines should be >7 and <13, and the number of +# different elapsed times should be at least 6. The last percentage should # be 100. # -if ! test "${lineCount}" -gt 8; then - echo "fewer than 9 output lines (${lineCount})" +if ! test "${lineCount}" -gt 7; then + echo "fewer than 8 output lines (${lineCount})" exit 1 fi if ! test "${lineCount}" -lt 13; then echo "more than 12 output lines (${lineCount})" exit 1 fi -if ! test "${timesCount}" -gt 7; then - echo "fewer than 8 different elapsed times (${timesCount})" +if ! test "${timesCount}" -gt 5; then + echo "fewer than 6 different elapsed times (${timesCount})" exit 1 fi if ! test "${finalPercentage}" = "100"; then