mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
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:
parent
52ef919aee
commit
5152f6534d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue