Fix test_functions.fish for Ubuntu Noble Numbat Docker build

vared.fish is installed at
/home/fishuser/fish-build/test/buildroot/usr/local/share/fish/functions/vared.fish
as oppposed to being sourced from share/functions/.

I'm not 100% sure why this happens but it doesn't seem wrong.
This commit is contained in:
Johannes Altmanninger 2024-04-28 10:15:02 +02:00
parent 52ef919aee
commit 5152f6534d

View File

@ -30,7 +30,7 @@ functions -D f2
# function that could be autoloaded but isn't currently loaded.
set x (functions -D vared)
if test (count $x) -ne 1
or not string match -q '*/share/functions/vared.fish' "$x"
or not string match -rq '.*/share(/fish)?/functions/vared\.fish' "$x"
echo "Unexpected output for 'functions -D vared': $x" >&2
end
@ -39,7 +39,7 @@ end
# function that was autoloaded.
set x (functions -v -D vared)
if test (count $x) -ne 5
or not string match -q '*/share/functions/vared.fish' $x[1]
or not string match -rq '.*/share(/fish)?/functions/vared\.fish' $x[1]
or test $x[2] != autoloaded
or test $x[3] != 6
or test $x[4] != scope-shadowing