dev-python/elasticsearch-curator: Use Bash syntax. Add missing die.

Package-Manager: portage-2.2.26
This commit is contained in:
Patrice Clement
2016-02-15 13:09:49 +00:00
parent 17b06b864b
commit e2441d0bd5
2 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ python_test() {
# 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"
@@ -75,7 +75,7 @@ python_test() {
done
export TEST_ES_SERVER="localhost:${ES_PORT}"
esetup.py test
esetup.py test || die
pkill -F ${PID}
}

View File

@@ -59,7 +59,7 @@ python_test() {
# 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"
@@ -78,7 +78,7 @@ python_test() {
done
export TEST_ES_SERVER="localhost:${ES_PORT}"
esetup.py test
esetup.py test || die
pkill -F ${PID}
}