]> git.ipfire.org Git - thirdparty/git.git/commit
t/perf: use 'test_file_size' in more places
authorTaylor Blau <me@ttaylorr.com>
Thu, 21 Nov 2024 20:29:24 +0000 (15:29 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Nov 2024 00:44:34 +0000 (09:44 +0900)
commit3f97f1bce6aeb9ee2b642f51cb62f610dc3a4ae0
tree3f4d509f549b4d4c7ab92939b23c890d8bace4d1
parent46698a8ea13f244aac74366d2ee66a88e92e001a
t/perf: use 'test_file_size' in more places

The perf test suite prefers to use test_file_size over 'wc -c' when
inside of a test_size block. One advantage is that accidentally writign
"wc -c file" (instead of "wc -c <file") does not inadvertently break the
tests (since the former will include the filename in the output of wc).

Both of the two uses of test_size use "wc -c", but let's convert those
to the more conventional test_file_size helper instead.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p5311-pack-bitmaps-fetch.sh
t/perf/p5332-multi-pack-reuse.sh