mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 13:55:08 +00:00
trying this instead
This commit is contained in:
parent
aa0b93dda9
commit
58824ca358
1 changed files with 9 additions and 8 deletions
17
test.sh
17
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 '<title> Login </title>' || exit 1
|
||||
Loading…
Reference in a new issue