From: Jim Meyering Date: Thu, 5 Jan 2012 17:24:41 +0000 (+0100) Subject: tests: fix a bug in wait_for_dev_to_disappear_ helper function X-Git-Tag: android-x86-4.4-r1~71 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e54f1da5bd2c379d8d2e4e7d5bb086b4947d4591;p=android-x86%2Fexternal-parted.git tests: fix a bug in wait_for_dev_to_disappear_ helper function * tests/t-lib-helpers.sh (wait_for_dev_to_disappear_): Correct typo: missing expr in subshell. --- diff --git a/tests/t-lib-helpers.sh b/tests/t-lib-helpers.sh index 3c41e7b..4b3c122 100644 --- a/tests/t-lib-helpers.sh +++ b/tests/t-lib-helpers.sh @@ -388,7 +388,7 @@ wait_for_dev_to_disappear_() while :; do ls "$file" > /dev/null 2>&1 || return 0 sleep .1 2>/dev/null || { sleep 1; incr=10; } - i=$(expr $i + $incr); test $i -ge $($n_sec \* 10) && break + i=$(expr $i + $incr); test $i -ge $(expr $n_sec \* 10) && break done return 1 }