From 58824ca35875e7f7c3acc92b696ec7011df88d6e Mon Sep 17 00:00:00 2001 From: Mendel Greenberg Date: Mon, 4 Mar 2019 00:03:18 -0500 Subject: [PATCH] trying this instead --- test.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test.sh b/test.sh index 31fcbeb0..4bba3cda 100644 --- a/test.sh +++ b/test.sh @@ -2,13 +2,14 @@ ./dbench start > /tmp/bench.log & -output=$( - while ! curl "http://localhost:8000" - do - { echo "Exit status of curl: $?" - } 1>&2 - sleep 1 - done -) +while ! [[ $i == 20 ]] +do + output=$( curl "http://localhost:8000" ) + { echo "Exit status of curl: $?" + } 1>&2 + sleep 2 + i=$((i + 1)) +done + echo "${output}" | grep ' Login ' || exit 1 \ No newline at end of file