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
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user