Adjust the lower boundary to make failure less likely on a heavily loaded system.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user