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>
This commit is contained in:
Taylor Blau
2024-11-21 15:29:24 -05:00
committed by Junio C Hamano
parent 46698a8ea1
commit 3f97f1bce6
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ test_fetch_bitmaps () {
'
test_size "size $title" '
wc -c <tmp.pack
test_file_size tmp.pack
'
test_perf "client $title (lookup=$1)" '

View File

@ -73,7 +73,7 @@ do
"
test_size "clone size for $nr_packs-pack scenario ($reuse-pack reuse)" '
wc -c <result
test_file_size result
'
done
done