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>
Taylor Blau committed
Nov 21, 2024 at 15:29 UTC
3f97f1bce6aeb9ee2b642f51cb62f610dc3a4ae0
2 files changed
+2
-2
t/perf/p5311-pack-bitmaps-fetch.sh
+1
-1
@@ -39,7 +39,7 @@ test_fetch_bitmaps () {
39
'
40
41
test_size "size $title" '
42
- wc -c <tmp.pack
42
+ test_file_size tmp.pack
43
'
44
45
test_perf "client $title (lookup=$1)" '
t/perf/p5332-multi-pack-reuse.sh
+1
-1
@@ -73,7 +73,7 @@ do
73
"
74
75
test_size "clone size for $nr_packs-pack scenario ($reuse-pack reuse)" '
76
- wc -c <result
76
+ test_file_size result
77
'
78
done
79
done