Don't use seq in tests, not everyone has it
For example Mac OS X lacks the seq command. So we cannot use it there. A good old while loop works just as good. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
cbc6bdab08
commit
b3431bc603
@ -10,11 +10,14 @@ test_expect_success \
|
|||||||
'setup' \
|
'setup' \
|
||||||
'rm -rf .git
|
'rm -rf .git
|
||||||
git-init &&
|
git-init &&
|
||||||
for i in `seq -w 100`
|
i=1 &&
|
||||||
|
while test $i -le 100
|
||||||
do
|
do
|
||||||
|
i=`printf '%03i' $i`
|
||||||
echo $i >file_$i &&
|
echo $i >file_$i &&
|
||||||
test-genrandom "$i" 8192 >>file_$i &&
|
test-genrandom "$i" 8192 >>file_$i &&
|
||||||
git-update-index --add file_$i || return 1
|
git-update-index --add file_$i &&
|
||||||
|
i=`expr $i + 1` || return 1
|
||||||
done &&
|
done &&
|
||||||
{ echo 101 && test-genrandom 100 8192; } >file_101 &&
|
{ echo 101 && test-genrandom 100 8192; } >file_101 &&
|
||||||
git-update-index --add file_101 &&
|
git-update-index --add file_101 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user