OSDN Git Service
(root)
/
android-x86
/
external-parted.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b56370a
)
tests: fix a bug in wait_for_dev_to_disappear_ helper function
author
Jim Meyering
<meyering@redhat.com>
Thu, 5 Jan 2012 17:24:41 +0000
(18:24 +0100)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/tests/t-lib-helpers.sh
b/tests/t-lib-helpers.sh
index
3c41e7b
..
4b3c122
100644
(file)
--- 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
}