dev-python/elasticsearch-curator: Use Bash syntax. Add missing die.
authorPatrice Clement <monsieurp@gentoo.org>
Mon, 15 Feb 2016 13:09:49 +0000 (13:09 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 15 Feb 2016 13:09:49 +0000 (13:09 +0000)
Package-Manager: portage-2.2.26

dev-python/elasticsearch-curator/elasticsearch-curator-3.4.0.ebuild
dev-python/elasticsearch-curator/elasticsearch-curator-3.4.1.ebuild

index 9dbbb26e78d5e05effd72b6fafbca47bc3721850..6e46527e3141063411fc23bb171caaaf494cba8f 100644 (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}
 }
index 3c1d8ab261fc80f81068dc861ecd8698eaa84aa3..5e7893ad2264d59d0fc4614530faade03360e204 100644 (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}
 }