Skip to content

Commit a5e9c7d

Browse files
Sam VilainEric Wong
authored andcommitted
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>
1 parent cb74a0c commit a5e9c7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/lib-git-svn.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ fi
1616
GIT_DIR=$PWD/.git
1717
GIT_SVN_DIR=$GIT_DIR/svn/refs/remotes/git-svn
1818
SVN_TREE=$GIT_SVN_DIR/svn-tree
19+
PERL=${PERL:-perl}
1920

2021
svn >/dev/null 2>&1
2122
if test $? -ne 1
@@ -29,7 +30,7 @@ export svnrepo
2930
svnconf=$PWD/svnconf
3031
export svnconf
3132

32-
perl -w -e "
33+
$PERL -w -e "
3334
use SVN::Core;
3435
use SVN::Repos;
3536
\$SVN::Core::VERSION gt '1.1.0' or exit(42);
@@ -130,7 +131,7 @@ stop_httpd () {
130131
}
131132

132133
convert_to_rev_db () {
133-
perl -w -- - "$@" <<\EOF
134+
$PERL -w -- - "$@" <<\EOF
134135
use strict;
135136
@ARGV == 2 or die "Usage: convert_to_rev_db <input> <output>";
136137
open my $wr, '+>', $ARGV[1] or die "$!: couldn't open: $ARGV[1]";

0 commit comments

Comments
 (0)