* [PATCH] t/perf: make runner work even if Git is not installed
@ 2015-09-25 0:31 Stephan Beyer
0 siblings, 0 replies; only message in thread
From: Stephan Beyer @ 2015-09-25 0:31 UTC (permalink / raw)
To: git; +Cc: Thomas Rast, Stephan Beyer
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>
---
t/perf/aggregate.perl | 1 +
1 file changed, 1 insertion(+)
diff --git a/t/perf/aggregate.perl b/t/perf/aggregate.perl
index 15f7fc1..924b19d 100755
--- a/t/perf/aggregate.perl
+++ b/t/perf/aggregate.perl
@@ -1,5 +1,6 @@
#!/usr/bin/perl
+use lib '../../perl/blib/lib';
use strict;
use warnings;
use Git;
--
2.6.0.rc3.dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-25 0:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-25 0:31 [PATCH] t/perf: make runner work even if Git is not installed Stephan Beyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).