@cryptotaxi247 / kubo / commits / 59cac0a16

test-lib: use test_seq()

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Jun 3, 2015 at 23:53 UTC 59cac0a161d3b674efa1b15e6bc5c979978d7421
1 file changed +2 -2
test/sharness/lib/test-lib.sh
+2 -2
@@ -52,7 +52,7 @@ fi
52 . ../../ipfs-test-lib.sh
53
54 test_cmp_repeat_10_sec() {
55 - for i in `seq 1 100`
55 + for i in $(test_seq 1 100)
56 do
57 test_cmp "$1" "$2" >/dev/null && return
58 sleep 0.1
@@ -245,7 +245,7 @@ test_launch_ipfs_daemon_and_mount() {
245 test_kill_repeat_10_sec() {
246 # try to shut down once + wait for graceful exit
247 kill $1
248 - for i in `seq 1 100`
248 + for i in $(test_seq 1 100)
249 do
250 sleep 0.1
251 ! kill -0 $1 2>/dev/null && return