[PATCH GSoC v2 2/6] t5701: use the test_file_size() helper
- From
Pablo Sabater <pabloosabaterr@gmail.com>
- Date
- Jul 31, 2026, 19:49 UTC
- Message-ID
- <20260731-objecttype-support-v2-2-af577461ed57@gmail.com>
- In-Reply-To
- <20260731-objecttype-support-v2-0-af577461ed57@gmail.com>
An object-info test uses 'wc -c <two.t | xargs' to get the file size. Update it to use the test_file_size() helper instead.
Mentored-by: Karthik Nayak <karthik.188@gmail.com> Mentored-by: Chandra Pratap <chandrapratap3519@gmail.com> Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com> --- t/t5701-git-serve.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t5701-git-serve.sh b/t/t5701-git-serve.sh index 9a575aa098..b4d6beef11 100755 --- a/t/t5701-git-serve.sh +++ b/t/t5701-git-serve.sh @@ -356,8 +356,8 @@ test_expect_success 'basics of object-info' ' cat >expect <<-EOF && size - $(git rev-parse two:two.t) $(wc -c <two.t | xargs) - $(git rev-parse two:two.t) $(wc -c <two.t | xargs) + $(git rev-parse two:two.t) $(test_file_size two.t) + $(git rev-parse two:two.t) $(test_file_size two.t) 0000 EOF
-- 2.54.0