mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 23:21:15 -03:00
tests: Override __fish_print_help
This effectively disables "--help", replacing it with just a stand-in string. The upshot is that it makes the test suite immune to whether or not it can find the documentation - until now it needed to *not* find it, which is weird. (also it saves some useless lines) Fixes #11270
This commit is contained in:
@@ -86,9 +86,7 @@ $fish -c 'begin --notanoption; end'
|
||||
# CHECKERR: ^~~~~~~~~~~~^
|
||||
|
||||
$fish -c 'begin --help'
|
||||
# CHECKERR: fish: begin: missing man page
|
||||
# CHECKERR: Documentation may not be installed.
|
||||
# CHECKERR: `help begin` will show an online version
|
||||
# CHECKERR: Documentation for begin
|
||||
|
||||
$fish -c 'echo (for status in foo; end)'
|
||||
# CHECKERR: fish: for: status: cannot overwrite read-only variable
|
||||
|
||||
Reference in New Issue
Block a user