]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-helpers.sh use expr instead of (( ))
authorLoic Dachary <ldachary@redhat.com>
Sun, 31 May 2015 14:06:24 +0000 (16:06 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sun, 31 May 2015 16:33:20 +0000 (18:33 +0200)
Because (( timer++ )) is mistaken by set -e to not be a successful
command, use expr instead.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
qa/workunits/ceph-helpers.sh

index 4adb51550a2f1613695e0db1346c738d15d5dec8..ad04abe733a400aa8f1f2e072a159100dafa0ec2 100755 (executable)
@@ -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
 }