mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 14:43:55 +08: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,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 New Issue
Block a user