frappe_docker/test.sh
Mendel Greenberg a36de81e4b
please pollute!
2019-03-04 00:33:27 -05:00

17 lines
No EOL
260 B
Bash

#!/bin/bash
cat <(./dbench start) &
sleep 5
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