neovim/test/functional/core
Omri Sarig f520c1ef85
test: Fix failing test in case of special .bashrc (#12920)
The test of "replace environment" in the test module of
`test/functional/core/job_spec.lua` failed in case the bashrc file of
the user running the test has special actions in it (such actions were
printing to the screen from inside this file, or changing the bash mode
to be vi).

In order to fix this problem, the test now sets the shell to be
`/bin/sh` before running the command. Setting the shell to be `/bin/sh`
causes the running shell to run without the configuration of the user,
and so the test passes even in case of special .bashrc.
This change was done only for platforms other than Windows since it is
not relevant in windows.

The fix was applied to the specific test, even though it is possible
that related issues will arise in other tests. It seems like a big
overhead to make the fix work on all the possible tests, and it does not
worth this cost.
2020-09-28 22:20:49 +02:00
..
channels_spec.lua test: is_os() #10933 2019-09-04 06:58:04 -07:00
exit_spec.lua test: lua test for vim-patch:8.0.0184 2018-03-24 23:06:09 +01:00
fileio_spec.lua vim-patch:8.1.0251: support full paths for 'backupdir' #11269 2019-11-17 23:38:27 -08:00
job_spec.lua test: Fix failing test in case of special .bashrc (#12920) 2020-09-28 22:20:49 +02:00
main_spec.lua terminal: add tests for palette color forwarding 2019-11-03 10:14:58 +01:00
path_spec.lua test: avoid extra clear() calls 2017-10-02 01:46:16 +02:00
spellfile_spec.lua test: cleanup 2019-05-05 23:01:35 +02:00
startup_spec.lua startup: fix stall issue with -D options (#12652) 2020-07-19 17:44:22 +02:00