diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-06-09 07:15:50 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-06-09 07:15:51 -0700 |
| commit | 427b538fc33d4feb958424fb997715d9fcae2a02 (patch) | |
| tree | 7bebff9b6b688a5e9d11dddc0b1a90ecb15df27a | |
| parent | A bit more before -rc2 (diff) | |
| parent | t: run tests from a normalized working directory (diff) | |
| download | git-427b538fc33d4feb958424fb997715d9fcae2a02.tar.gz git-427b538fc33d4feb958424fb997715d9fcae2a02.zip | |
Merge branch 'mm/test-in-absolute-home'
Tests that compare $HOME and $(pwd), which should be the same
directory unless the tests chdir's around, would fail when the user
enters the test directory via symbolic links, which has been
corrected.
* mm/test-in-absolute-home:
t: run tests from a normalized working directory
Diffstat (limited to '')
| -rw-r--r-- | t/test-lib.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index af722d383d..92d0db13d7 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1577,6 +1577,8 @@ fi # 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 "$TRASH_DIRECTORY" || BAIL_OUT "cannot cd -P to \"$TRASH_DIRECTORY\"" +TRASH_DIRECTORY=$(pwd) +HOME="$TRASH_DIRECTORY" start_test_output "$0" |
