Merge branch 'ds/maintenance-part-2'

Test fix.

* ds/maintenance-part-2:
  t7900: speed up expensive test
maint
Junio C Hamano 2020-12-08 15:11:19 -08:00
commit 945158016a
1 changed files with 4 additions and 2 deletions

View File

@ -239,13 +239,15 @@ test_expect_success 'incremental-repack task' '
'

test_expect_success EXPENSIVE 'incremental-repack 2g limit' '
test_config core.compression 0 &&

for i in $(test_seq 1 5)
do
test-tool genrandom foo$i $((512 * 1024 * 1024 + 1)) >>big ||
return 1
done &&
git add big &&
git commit -m "Add big file (1)" &&
git commit -qm "Add big file (1)" &&

# ensure any possible loose objects are in a pack-file
git maintenance run --task=loose-objects &&
@ -257,7 +259,7 @@ test_expect_success EXPENSIVE 'incremental-repack 2g limit' '
return 1
done &&
git add big &&
git commit -m "Add big file (2)" &&
git commit -qm "Add big file (2)" &&

# ensure any possible loose objects are in a pack-file
git maintenance run --task=loose-objects &&