From 53b67a801bbce7600f25823c39c7e9e7de8b72b3 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 7 Nov 2020 01:12:57 +0000 Subject: tests: consolidate the `file_size` function into `test-lib-functions.sh` In 8de7eeb54b6 (compression: unify pack.compression configuration parsing, 2016-11-15), we introduced identical copies of the `file_size` helper into three test scripts, with the plan to eventually consolidate them into a single copy. Let's do that, and adjust the function name to adhere to the `test_*` naming convention. Signed-off-by: Johannes Schindelin Reviewed-by: brian m. carlson Signed-off-by: Junio C Hamano --- t/test-lib-functions.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't/test-lib-functions.sh') diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 8d59b90348..84822848d4 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -783,6 +783,10 @@ test_line_count () { fi } +test_file_size () { + test-tool path-utils file-size "$1" +} + # Returns success if a comma separated string of keywords ($1) contains a # given keyword ($2). # Examples: -- cgit v1.2.3