summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-10-11 10:21:49 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-11 10:21:49 -0700
commit68ef6c0b1a676168d10efcb928c5977dd72cff46 (patch)
tree63600e0ea75d3c4747a08bb3ab06cd5126c86e6e /t
parentMerge branch 'rs/p3400-lose-tac' (diff)
parentt/perf/aggregate.perl: tolerate leading spaces (diff)
downloadtgif-68ef6c0b1a676168d10efcb928c5977dd72cff46.tar.xz
Merge branch 'tb/aggregate-ignore-leading-whitespaces'
Test portability update. * tb/aggregate-ignore-leading-whitespaces: t/perf/aggregate.perl: tolerate leading spaces
Diffstat (limited to 't')
-rwxr-xr-xt/perf/aggregate.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/perf/aggregate.perl b/t/perf/aggregate.perl
index 82c0df4553..575d2000cc 100755
--- a/t/perf/aggregate.perl
+++ b/t/perf/aggregate.perl
@@ -17,8 +17,8 @@ sub get_times {
my $rt = ((defined $1 ? $1 : 0.0)*60+$2)*60+$3;
return ($rt, $4, $5);
# size
- } elsif ($line =~ /^\d+$/) {
- return $&;
+ } elsif ($line =~ /^\s*(\d+)$/) {
+ return $1;
} else {
die "bad input line: $line";
}