Correctly remove the test directory again in cd test

This commit is contained in:
ridiculousfish
2019-01-22 14:07:25 -08:00
parent 91a9c98974
commit 24f251e044

View File

@@ -39,16 +39,16 @@ complete -C'ls ../'
echo "cd:"
complete -C'cd ../'
# cd back before removing the test directory again.
cd $oldpwd
rm -Rf $base
logmsg Virtual PWD inheritance
# PWD should be imported and respected by fish
cd $oldpwd
mkdir -p $base/realhome
set fish_path $PWD/../test/root/bin/fish
ln -s $base/realhome $base/linkhome
cd $base/linkhome
env HOME=$base/linkhome $fish_path -c 'echo PWD is $PWD'
# cd back before removing the test directory again.
cd $oldpwd
rm -Rf $base