From 392e48d242159f2e57894ac61178843df81aec92 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 23 Jun 2021 21:29:27 +0200 Subject: [PATCH] Fix fish_add_path tests Whoopsie! I forgot to adjust them for $PATH scope - it now prints a `-g` when setting $PATH verbosely. --- tests/checks/fish_add_path.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checks/fish_add_path.fish b/tests/checks/fish_add_path.fish index b509236fb..948498e3b 100644 --- a/tests/checks/fish_add_path.fish +++ b/tests/checks/fish_add_path.fish @@ -48,7 +48,7 @@ string replace -- $tmpdir '' $fish_user_paths | string join ' ' set -l oldpath "$PATH" fish_add_path -nP $tmpdir/etc | string replace -- $tmpdir '' # Should print a set command to prepend /etc to $PATH, but not actually do it -# CHECK: set PATH /etc{{.*}} +# CHECK: set -g PATH /etc{{.*}} # Confirm that $PATH didn't change. test "$oldpath" = "$PATH" @@ -56,6 +56,6 @@ or echo "PATH CHANGED!!!" >&2 # See that moving multiple arguments removes the correct ones - #7776 PATH=$tmpdir/{bin,etc,link,sbin} fish_add_path -nPpm $tmpdir/{link,sbin} | string replace -a $tmpdir '' -# CHECK: set PATH /link /sbin /bin /etc +# CHECK: set -g PATH /link /sbin /bin /etc exit 0