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>
Shawn O. Pearce committed
May 2, 2007 at 12:59 UTC
b3431bc603df74cfe2da56e9a5c3f60327dd56b9
1 file changed
+5
-2
t/t5302-pack-index.sh
+5
-2
@@ -10,11 +10,14 @@ test_expect_success \
10
'setup' \
11
'rm -rf .git
12
git-init &&
13
- for i in `seq -w 100`
13
+ i=1 &&
14
+ while test $i -le 100
15
do
16
+ i=`printf '%03i' $i`
17
echo $i >file_$i &&
18
test-genrandom "$i" 8192 >>file_$i &&
17
- git-update-index --add file_$i || return 1
19
+ git-update-index --add file_$i &&
20
+ i=`expr $i + 1` || return 1
21
done &&
22
{ echo 101 && test-genrandom 100 8192; } >file_101 &&
23
git-update-index --add file_101 &&