1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

test-lib: use test_seq()

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2015-06-03 23:53:24 +02:00
parent 3c2e0ba586
commit 59cac0a161

View File

@ -52,7 +52,7 @@ fi
. ../../ipfs-test-lib.sh
test_cmp_repeat_10_sec() {
for i in `seq 1 100`
for i in $(test_seq 1 100)
do
test_cmp "$1" "$2" >/dev/null && return
sleep 0.1
@ -245,7 +245,7 @@ test_launch_ipfs_daemon_and_mount() {
test_kill_repeat_10_sec() {
# try to shut down once + wait for graceful exit
kill $1
for i in `seq 1 100`
for i in $(test_seq 1 100)
do
sleep 0.1
! kill -0 $1 2>/dev/null && return