Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-12 00:18:39 +0300
committerJunio C Hamano <gitster@pobox.com>2020-11-12 00:18:39 +0300
commitf2061f698292c966498d1caec7c5ce9e2e8f67a3 (patch)
tree8d34453ae0fd4575f1b282301b1357b3acbcca48 /t/test-lib-functions.sh
parent719b92eeaf7488e68c1e920ce30b989fc02998b0 (diff)
parent53b67a801bbce7600f25823c39c7e9e7de8b72b3 (diff)
Merge branch 'js/test-file-size'
Test clean-up. * js/test-file-size: tests: consolidate the `file_size` function into `test-lib-functions.sh`
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 4a35bde145..59bbf75e83 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: