mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
tests: Don't rely on $HOME existing
Apparently the launchpad tests run with $HOME set to a nonexistent directory. Since we just want *out*, let's just store the previous dir and go back.
This commit is contained in:
parent
43505f7077
commit
4c09012b0d
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
# RUN: %fish %s
|
||||
|
||||
set -l oldpwd $PWD
|
||||
cd (mktemp -d)
|
||||
set tmpdir (pwd -P)
|
||||
|
||||
|
@ -85,5 +86,5 @@ string join \n **/bar | sort
|
|||
# CHECK: foo/bar
|
||||
|
||||
# Clean up.
|
||||
cd $HOME
|
||||
cd $oldpwd
|
||||
rm -Rf $tmpdir
|
||||
|
|
Loading…
Reference in a new issue