mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/elasticsearch-curator: Use Bash syntax. Add missing die.
Package-Manager: portage-2.2.26
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user