From 64944d4105203266751f43ea6483c929dc8c180c Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 31 May 2015 16:06:24 +0200 Subject: [PATCH] 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 --- qa/workunits/ceph-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/workunits/ceph-helpers.sh b/qa/workunits/ceph-helpers.sh index 4adb51550a2..ad04abe733a 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 }