OSDN Git Service

tests: fix a bug in wait_for_dev_to_disappear_ helper function
authorJim Meyering <meyering@redhat.com>
Thu, 5 Jan 2012 17:24:41 +0000 (18:24 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 5 Jan 2012 17:25:21 +0000 (18:25 +0100)
* tests/t-lib-helpers.sh (wait_for_dev_to_disappear_): Correct
typo: missing expr in subshell.

tests/t-lib-helpers.sh

index 3c41e7b..4b3c122 100644 (file)
@@ -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
 }