| 1 | test_expect_success 'loop-detect-status' ' |
| 2 | # LINT: "$?" handled explicitly within loop body |
| 3 | (while test $i -le $blobcount |
| 4 | do |
| 5 | printf "Generating blob $i/$blobcount\r" >&2 && |
| 6 | printf "blob\nmark :$i\ndata $blobsize\n" && |
| 7 | #test-tool genrandom $i $blobsize && |
| 8 | printf "%-${blobsize}s" $i && |
| 9 | echo "M 100644 :$i $i" >> commit && |
| 10 | i=$(($i+1)) || |
| 11 | echo $? > exit-status |
| 12 | done && |
| 13 | echo "commit refs/heads/main" && |
| 14 | echo "author A U Thor <author@email.com> 123456789 +0000" && |
| 15 | echo "committer C O Mitter <committer@email.com> 123456789 +0000" && |
| 16 | echo "data 5" && |
| 17 | echo ">2gb" && |
| 18 | cat commit) | |
| 19 | git fast-import --big-file-threshold=2 && |
| 20 | test ! -f exit-status |
| 21 | ' |