From: Loic Dachary Date: Sun, 31 May 2015 14:06:24 +0000 (+0200) Subject: tests: ceph-helpers.sh use expr instead of (( )) X-Git-Tag: v9.0.2~70^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=64944d4105203266751f43ea6483c929dc8c180c;p=ceph.git tests: ceph-helpers.sh use expr instead of (( )) Because (( timer++ )) is mistaken by set -e to not be a successful command, use expr instead. Signed-off-by: Loic Dachary --- diff --git a/qa/workunits/ceph-helpers.sh b/qa/workunits/ceph-helpers.sh index 4adb51550a2f1..ad04abe733a40 100755 --- a/qa/workunits/ceph-helpers.sh +++ b/qa/workunits/ceph-helpers.sh @@ -990,7 +990,7 @@ function wait_for_clean() { num_active_clean=$cur_active_clean fi sleep 1 - (( timer++ )) + timer=$(expr $timer + 1) done return 0 }