diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2019-01-29 06:19:33 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-29 09:26:47 -0800 |
commit | 5868bd862059fcf96e2908e94427da6e7fcd1394 (patch) | |
tree | fe4c30c50d0df19bf547db69da1e633ca6e4b7d4 /t/t5315-pack-objects-compression.sh | |
parent | 5f7864663bdb71635b4aaf0d996db14e4d521ff6 (diff) | |
download | git-5868bd862059fcf96e2908e94427da6e7fcd1394.tar.gz |
tests: avoid calling Perl just to determine file sizes
It is a bit ridiculous to spin up a full-blown Perl instance (especially
on Windows, where that means spinning up a full POSIX emulation layer,
AKA the MSYS2 runtime) just to tell how large a given file is.
So let's just use the test-tool to do that job instead.
This command will also be used over the next commits, to allow for
cutting out individual test cases' verbose log from the file generated
via --verbose-log.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5315-pack-objects-compression.sh')
-rwxr-xr-x | t/t5315-pack-objects-compression.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5315-pack-objects-compression.sh b/t/t5315-pack-objects-compression.sh index 34c47dae09..df970d7584 100755 --- a/t/t5315-pack-objects-compression.sh +++ b/t/t5315-pack-objects-compression.sh @@ -7,7 +7,7 @@ test_description='pack-object compression configuration' # This should be moved to test-lib.sh together with the # copy in t0021 after both topics have graduated to 'master'. file_size () { - perl -e 'print -s $ARGV[0]' "$1" + test-tool path-utils file-size "$1" } test_expect_success setup ' |