diff options
author | Taylor Blau <me@ttaylorr.com> | 2021-10-03 01:14:49 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-04 14:12:28 -0700 |
commit | 76f3b69896bf72bb195497d54c7e2f19821a7305 (patch) | |
tree | 45f406554653c37a9af403652ccd102cdae82bde /t/t7606-merge-custom.sh | |
parent | Git 2.33 (diff) | |
download | tgif-76f3b69896bf72bb195497d54c7e2f19821a7305.tar.xz |
t/perf/aggregate.perl: tolerate leading spaces
When using `test_size` with `wc -c`, users on certain platforms can run
into issues when `wc` emits leading space characters in its output,
which confuses get_times.
Callers could switch to use test_file_size instead of `wc -c` (the
former never prints leading space characters, so will always work with
test_size regardless of platform), but this is an easy enough spot to
miss that we should teach get_times to be more tolerant of the input it
accepts.
Teach get_times to do just that by stripping any leading space
characters.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7606-merge-custom.sh')
0 files changed, 0 insertions, 0 deletions