Adjust lower threshold in case of heavy load during testing.

This commit is contained in:
Andrew Wood
2023-07-27 20:49:14 +01:00
parent 43dc9d6469
commit 60913618be
+3 -3
View File
@@ -21,11 +21,11 @@ sizeCheck () {
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
# The number of output lines should be >5 and <13, and the final
# percentage should be $2.
#
if ! test "${lineCount}" -gt 8; then
echo "(reference size=$1) fewer than 9 output lines (${lineCount})"
if ! test "${lineCount}" -gt 5; then
echo "(reference size=$1) fewer than 6 output lines (${lineCount})"
exit 1
fi
if ! test "${lineCount}" -lt 13; then