test: use resulting PATH on duplicated source tests (#1328)

* test: use actual result PATH for fish test

Fish uses space instead of colon for $PATH separator

* test: use actual result PATH for elvish and sh tests
This commit is contained in:
Yuri Pereira Constante 2022-10-18 13:58:12 +00:00 committed by GitHub
parent 7c802c3fc9
commit 24b46078e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ cleaned_path() {
echo \$E:PATH
")
[ "$?" -eq 0 ]
output=$(echo $PATH | tr ':' '\n' | grep "asdf" | sort | uniq -d)
output=$(echo $result | tr ':' '\n' | grep "asdf" | sort | uniq -d)
[ "$output" = "" ]
}

View File

@ -51,7 +51,7 @@ cleaned_path() {
echo \$PATH
")
[ "$?" -eq 0 ]
output=$(echo $PATH | tr ':' '\n' | grep "asdf" | sort | uniq -d)
output=$(echo $result | tr ' ' '\n' | grep "asdf" | sort | uniq -d)
[ "$output" = "" ]
}

View File

@ -68,7 +68,7 @@ cleaned_path() {
echo $PATH
)
output=$(echo $PATH | tr ':' '\n' | grep "asdf" | sort | uniq -d)
output=$(echo $result | tr ':' '\n' | grep "asdf" | sort | uniq -d)
[ "$?" -eq 0 ]
[ "$output" = "" ]
}