frappe_docker/test.sh
2019-03-03 23:27:16 -05:00

14 lines
No EOL
242 B
Bash

#!/bin/bash
./dbench start > /tmp/bench.log &
output=$(
while ! curl "http://localhost:8000/login"
do
{ echo "Exit status of curl: $?"
} 1>&2
sleep 1
done
)
echo "${output}" | grep '<title> Login </title>' || exit 1