From a62051e5fff81540a151b815662514ab9d49461a Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Tue, 28 Jan 2025 21:35:42 +0000 Subject: [PATCH] Adjust the sensitivity of the test. --- tests/Display_-_--last-written.test | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Display_-_--last-written.test b/tests/Display_-_--last-written.test index f20d7f3..1a658ae 100755 --- a/tests/Display_-_--last-written.test +++ b/tests/Display_-_--last-written.test @@ -18,8 +18,11 @@ seq -w 3 1 100 \ differentLines=$(tr '\r' '\n' < "${workFile1}" | sed '/^ *$/d' | sort | uniq | wc -l | tr -dc '0-9') lastLine=$(tr '\r' '\n' < "${workFile1}" | sed '/^ *$/d' | sed -n '$p') -if ! test "${differentLines}" -gt 5; then - echo "fewer than 6 different outputs seen" +# Even on very slow hosts, we should see at least 3 different output lines - +# nothing at the start, something in the middle, and the last few numbers at +# the end. +if ! test "${differentLines}" -gt 2; then + echo "fewer than 3 different outputs seen" tr '\r' '\n' < "${workFile1}" | sed '/^ *$/d' | sort | uniq exit 1 fi