mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
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:
parent
7c802c3fc9
commit
24b46078e3
@ -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" = "" ]
|
||||
}
|
||||
|
||||
|
@ -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" = "" ]
|
||||
}
|
||||
|
||||
|
@ -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" = "" ]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user