diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-02-06 18:08:22 -0800 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-02-25 17:16:36 -0800 |
commit | 8b67a1b26f2525f7de1e2a64dee6ab48b72b0e33 (patch) | |
tree | 5e0a33d532f47c5b1909b46116247f16f9707d52 /tests/indent.in | |
parent | c79ade9627b116a0dc4aecd27d1ff61e68fe595b (diff) |
make testing on local servers hermetic
I noticed while fixing issue #2702 that the fish program being tested
was sourcing config.fish files outside of the current build. This also
happens when Travis CI runs the tests but isn't an issue there because
of how Travis is configured to execute the tests.
I also noticed that running `make test` was polluting my personal fish
history; which will become a bigger problem if and when the fishd universal
var file is moved from $XDG_CONFIG_HOME to $XDG_DATA_HOME.
This change makes it possible for an individual to run the tests on
their local machine secure in the knowledge that only the config.fish and
related files from their git repository will be used and doing so won't
pollute their personal fish history.
Resolves #469
Diffstat (limited to 'tests/indent.in')
-rw-r--r-- | tests/indent.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/indent.in b/tests/indent.in index 226db14e..83ef915b 100644 --- a/tests/indent.in +++ b/tests/indent.in @@ -5,7 +5,7 @@ echo hi end | cat | cat | begin ; echo hi ; end | begin ; begin ; echo hi ; end ; end arg -' | ../fish_indent +' | ../test/root/bin/fish_indent echo \nTest2 echo -n ' @@ -18,7 +18,7 @@ switch aloha echo hi end -' | ../fish_indent +' | ../test/root/bin/fish_indent echo \nTest3 echo -n ' @@ -32,8 +32,8 @@ function hello_world echo hello; echo hello - end -' | ../fish_indent + end +' | ../test/root/bin/fish_indent echo \nTest4 echo -n ' @@ -53,7 +53,7 @@ switch foo #abc qqq case "*" echo sup -end' | ../fish_indent +end' | ../test/root/bin/fish_indent echo \nTest5 echo -n ' @@ -65,7 +65,7 @@ switch beta echo delta end end -' | ../fish_indent -i +' | ../test/root/bin/fish_indent -i echo \nTest6 # Test errors @@ -75,11 +75,11 @@ echo hi else echo bye end; echo alpha " -' | ../fish_indent +' | ../test/root/bin/fish_indent echo \nTest7 # issue 1665 echo -n ' if begin ; false; end; echo hi ; end while begin ; false; end; echo hi ; end -' | ../fish_indent +' | ../test/root/bin/fish_indent |