mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
don't run fish_update_completions in unit tests
Running `fish_update_completions` in unit tests is not needed and hideously expensive. To the point it can cause flakey test behavior.
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
# should be running it via `make test` to ensure the environment is properly
|
||||
# setup.
|
||||
|
||||
# Set this var to modify behavior of the code being tests. Such as avoiding running
|
||||
# `fish_update_completions` when running tests.
|
||||
set -x FISH_UNIT_TESTS_RUNNING 1
|
||||
|
||||
# Change to directory containing this script
|
||||
cd (dirname (status -f))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user