Commit 8c26eff1 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

Merge pull request #1371 from ipfs/use-sharness-test-seq

ipfs-test-lib: use test_seq from sharness
parents 8b81793c 408a818b
......@@ -22,16 +22,3 @@ test_sort_cmp() {
sort "$2" >"$2_sorted" &&
test_cmp "$1_sorted" "$2_sorted"
}
# Depending on GNU seq availability is not nice.
# Git also has test_seq but it uses Perl.
test_seq() {
test "$1" -le "$2" || return
i="$1"
j="$2"
while test "$i" -le "$j"
do
echo "$i"
i=$(expr "$i" + 1)
done
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment