@matheusbsbs / matheus-bagliano / commits / a5e9c7dfe4
Fork 0

git-svn: allow test setup script to support PERL env. var

Possibly the 'perl' in the PATH is not the one to be used for the tests; let PERL set in the environment select it. Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz> Acked-by: Eric Wong <normalperson@yhbt.net>

Sam Vilain committed Oct 20, 2009 at 15:42 UTC a5e9c7dfe4732b560ab5dfc75e718bfda2027990
1 file changed +3 -2
t/lib-git-svn.sh
+3 -2
@@ -16,6 +16,7 @@ fi
16 GIT_DIR=$PWD/.git
17 GIT_SVN_DIR=$GIT_DIR/svn/refs/remotes/git-svn
18 SVN_TREE=$GIT_SVN_DIR/svn-tree
19 +PERL=${PERL:-perl}
20
21 svn >/dev/null 2>&1
22 if test $? -ne 1
@@ -29,7 +30,7 @@ export svnrepo
30 svnconf=$PWD/svnconf
31 export svnconf
32
32 -perl -w -e "
33 +$PERL -w -e "
34 use SVN::Core;
35 use SVN::Repos;
36 \$SVN::Core::VERSION gt '1.1.0' or exit(42);
@@ -130,7 +131,7 @@ stop_httpd () {
131 }
132
133 convert_to_rev_db () {
133 - perl -w -- - "$@" <<\EOF
134 + $PERL -w -- - "$@" <<\EOF
135 use strict;
136 @ARGV == 2 or die "Usage: convert_to_rev_db <input> <output>";
137 open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]";