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:
Fabian Boehm
2025-03-13 18:11:55 +01:00
parent 7224776f80
commit 6627d403d3
10 changed files with 19 additions and 39 deletions

View File

@@ -241,9 +241,7 @@ echo 7 $status # no passthrough
#CHECK: 7 4
false
set -h >/dev/null
# CHECKERR: fish: set: missing man page
# CHECKERR: Documentation may not be installed.
# CHECKERR: `help set` will show an online version
# CHECKERR: Documentation for set
echo 8 $status # no passthrough
#CHECK: 8 0