Skip to content

Commit

Permalink
t/perf: make runner work even if Git is not installed
Browse files Browse the repository at this point in the history
aggregate.perl did not work when Git.pm is not installed to a directory
contained in the default Perl library path list or PERLLIB.
This commit prepends the Perl library path of the current Git source
tree to enable this.

Note that this commit adds a hard-coded relative path

  use lib '../../perl/blib/lib';

instead of the flexible environment-based variant

  use lib (split(/:/, $ENV{GITPERLLIB}));

which is used in tests written in Perl.
The hard-coded variant is used because the whole performance test
framework does it that way (and GITPERLLIB is not set there).

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stephan Beyer authored and Junio C Hamano committed Sep 25, 2015
1 parent ee6ad5f commit 31cd128
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions t/perf/aggregate.perl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/perl

use lib '../../perl/blib/lib';
use strict;
use warnings;
use Git;
Expand Down

0 comments on commit 31cd128

Please sign in to comment.