Package-Manager: portage-2.2.26
# start local instance of elasticsearch
${ES}/bin/elasticsearch -d -p ${PID}
- for i in `seq 10`; do
+ for i in {1..10}; do
grep -q "started" ${ES_LOG} 2> /dev/null
if [ $? -eq 0 ]; then
einfo "Elasticsearch started"
done
export TEST_ES_SERVER="localhost:${ES_PORT}"
- esetup.py test
+ esetup.py test || die
pkill -F ${PID}
}
# start local instance of elasticsearch
${ES}/bin/elasticsearch -d -p ${PID}
- for i in `seq 10`; do
+ for i in {1..10}; do
grep -q "started" ${ES_LOG} 2> /dev/null
if [ $? -eq 0 ]; then
einfo "Elasticsearch started"
done
export TEST_ES_SERVER="localhost:${ES_PORT}"
- esetup.py test
+ esetup.py test || die
pkill -F ${PID}
}