Adjust the lower boundary to make failure less likely on a heavily loaded system.

This commit is contained in:
Andrew Wood
2026-04-19 00:19:29 +01:00
parent dc51002ba4
commit b3410cf8c0
+3 -3
View File
@@ -17,11 +17,11 @@ dd if=/dev/zero bs=100 count=1 2>/dev/null \
lineCount=$(wc -l < "${workFile1}" | tr -dc '0-9')
finalLine=$(sed -n '$p' < "${workFile1}")
# The number of output lines should be >8 and <13, and the final percentage
# The number of output lines should be >6 and <13, and the final percentage
# should be 50.
#
if ! test "${lineCount}" -gt 8; then
echo "part 1: fewer than 9 output lines (${lineCount})"
if ! test "${lineCount}" -gt 6; then
echo "part 1: fewer than 7 output lines (${lineCount})"
exit 1
fi
if ! test "${lineCount}" -lt 13; then