bench_common: do not reexecute failed commands
authorJean Privat <jean@pryen.org>
Wed, 23 Mar 2016 20:25:56 +0000 (16:25 -0400)
committerJean Privat <jean@pryen.org>
Wed, 23 Mar 2016 20:28:53 +0000 (16:28 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

benchmarks/bench_common.sh

index c7dad6d..dfdbc6b 100644 (file)
@@ -55,6 +55,7 @@ function bench_command()
                ) || { err=$?; failed=true; die "$1: failed with $err"; }
                echo -n "$i. "
                tail -n 1 "$timeout"
+               test -n "$failed" && break
        done
 
        line=`compute_stats "$timeout"`