benchmarks/polygons: check failures at the end of the script
authorJean Privat <jean@pryen.org>
Tue, 15 Sep 2015 20:06:27 +0000 (16:06 -0400)
committerJean Privat <jean@pryen.org>
Tue, 15 Sep 2015 23:55:53 +0000 (19:55 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

benchmarks/polygons/nit/bench_polygon.sh

index 52895e9..8b7fc08 100755 (executable)
@@ -166,3 +166,9 @@ case "$1" in
        contain) shift; bench_contain $@;;
        *) usage; exit;;
 esac
+
+if test -n "$died"; then
+       echo "Some commands failed"
+       exit 1
+fi
+exit 0