ipfs-test-lib: use test_seq from sharness
As Sharness now includes test_seq we can remove our implementation. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Jun 14, 2015 at 11:21 UTC
408a818b4a8401f4205817a936a614c89f5b808d
1 file changed
-13
test/ipfs-test-lib.sh
-13
@@ -22,16 +22,3 @@ test_sort_cmp() {
22
sort "$2" >"$2_sorted" &&
23
test_cmp "$1_sorted" "$2_sorted"
24
}
25
-
26
-# Depending on GNU seq availability is not nice.
27
-# Git also has test_seq but it uses Perl.
28
-test_seq() {
29
- test "$1" -le "$2" || return
30
- i="$1"
31
- j="$2"
32
- while test "$i" -le "$j"
33
- do
34
- echo "$i"
35
- i=$(expr "$i" + 1)
36
- done
37
-}