mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user