This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Set GIT_DIR instead of changing directory in find_git_or_skip() in test.pl
authorNicholas Clark <nick@ccl4.org>
Tue, 5 Jun 2012 13:55:22 +0000 (15:55 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 18 Jun 2012 12:15:41 +0000 (14:15 +0200)
commitfb7d53999be58b14525d3cb2e1bd581a93f888ad
treecf7b3df34e71d4e9c73bf5131c5a0545c2952144
parent7ab1c1a40119835e85bc5d17cebc8e31e6d9c303
Set GIT_DIR instead of changing directory in find_git_or_skip() in test.pl

Return the directory of the source tree, so that tests can change directory
to it if necessary. Modify t/porting/cmp_version.t to change directory.

This gets t/porting/utils.t passing again under -Dmksymlinks, without breaking
t/porting/cmp_version.t. The former needs to run in the build tree as it
inspects various build products. The latter needs to run in the (real)
checkout tree, else it thinks that every single file has changed (into a
symlink).
t/porting/cmp_version.t
t/test.pl