diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-06-02 10:45:37 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-02 10:45:37 +0400 |
commit | f0d2a057c1f8c1f425a81888bc9fd3fbca29bf99 (patch) | |
tree | da09c8a506cf0742467b71d792abe5b961505df4 /t | |
parent | 0cc01c9657e82cc3907377d937a1eb869dd4bb5c (diff) | |
parent | 1bd9c648408e3dd79882ab4c23af3b791c9e3c21 (diff) |
Merge branch 'lw/test-fix'
* lw/test-fix:
t/test-lib.sh: resolve symlinks in working directory, for pathname comparisons
Diffstat (limited to 't')
-rw-r--r-- | t/test-lib.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 3bf570b068..7a8bd27abc 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -419,7 +419,9 @@ rm -fr "$test" || { } test_create_repo "$test" -cd "$test" || exit 1 +# Use -P to resolve symlinks in our working directory so that the cwd +# in subprocesses like git equals our $PWD (for pathname comparisons). +cd -P "$test" || exit 1 this_test=$(expr "./$0" : '.*/\(t[0-9]*\)-[^/]*$') for skp in $GIT_SKIP_TESTS |