diff options
Diffstat (limited to 't/t6115-rev-list-du.sh')
| -rwxr-xr-x | t/t6115-rev-list-du.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t6115-rev-list-du.sh b/t/t6115-rev-list-du.sh index c0cfda62fa..04c577dad6 100755 --- a/t/t6115-rev-list-du.sh +++ b/t/t6115-rev-list-du.sh @@ -1,6 +1,7 @@ #!/bin/sh test_description='basic tests of rev-list --disk-usage' + . ./test-lib.sh # we want a mix of reachable and unreachable, as well as @@ -21,7 +22,7 @@ test_expect_success 'set up repository' ' disk_usage_slow () { git rev-list --no-object-names "$@" | git cat-file --batch-check="%(objectsize:disk)" | - perl -lne '$total += $_; END { print $total}' + awk '{ i += $1 } END { print i }' } # check behavior with given rev-list options; note that |
