diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-05-13 23:50:34 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-13 23:50:34 +0900 |
commit | 6cfa633565cc16f77d6e6d56fa608680828105a1 (patch) | |
tree | 4429f943b60568c8acb109515836a01abe764437 /t/perf | |
parent | Merge branch 'dl/rev-tilde-doc-clarify' (diff) | |
parent | t/perf: depend on perl JSON only when using --codespeed (diff) | |
download | tgif-6cfa633565cc16f77d6e6d56fa608680828105a1.tar.xz |
Merge branch 'jk/perf-aggregate-wo-libjson'
The script to aggregate perf result unconditionally depended on
libjson-perl even though it did not have to, which has been
corrected.
* jk/perf-aggregate-wo-libjson:
t/perf: depend on perl JSON only when using --codespeed
Diffstat (limited to 't/perf')
-rwxr-xr-x | t/perf/aggregate.perl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/perf/aggregate.perl b/t/perf/aggregate.perl index 494907a892..76dd48f890 100755 --- a/t/perf/aggregate.perl +++ b/t/perf/aggregate.perl @@ -3,7 +3,6 @@ use lib '../../perl/build/lib'; use strict; use warnings; -use JSON; use Getopt::Long; use Git; @@ -342,7 +341,8 @@ sub print_codespeed_results { } } - print to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n"; + require JSON; + print JSON::to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n"; } binmode STDOUT, ":utf8" or die "PANIC on binmode: $!"; |