Fail when measured latnecy is zero
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 28 May 2014 06:11:03 +0000 (08:11 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 28 May 2014 06:11:03 +0000 (08:11 +0200)
continuous/gw-setup/run.pl

index 47997d4..2572ef0 100755 (executable)
@@ -32,6 +32,7 @@ set -e
 source tmp-stat.txt
 for i in sent lost enobufs $(seq -f percentile%g 0 10 100); do keyval="$keyval $i=$((i))"; done
 echo "! PERF: gw_latency $avg ┬Ás $keyval ok"
+test $avg -eq 0 || exit 1
 exit $r
 EOF