mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Fix fish test
This commit is contained in:
parent
c847a99d89
commit
7876fcdd90
@ -25,23 +25,21 @@ cleaned_path() {
|
|||||||
[ "$result" != "" ]
|
[ "$result" != "" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Passes for me locally, doesn't work on Travis CI
|
@test "adds asdf dirs to PATH" {
|
||||||
#@test "adds asdf dirs to PATH" {
|
result=$(fish -c "
|
||||||
# result=$(fish -c "
|
set -e asdf
|
||||||
# set -e asdf
|
set -e ASDF_DIR
|
||||||
# set -e ASDF_DIR
|
set -e ASDF_DATA_DIR
|
||||||
# set -e ASDF_DATA_DIR
|
set PATH $(cleaned_path)
|
||||||
# set PATH $(cleaned_path)
|
|
||||||
#
|
source (pwd)/asdf.fish # if the full path is not passed, status -f will return the relative path
|
||||||
# source asdf.fish
|
echo \$PATH
|
||||||
# echo \$PATH
|
")
|
||||||
# ")
|
|
||||||
#
|
output=$(echo "$result" | grep "asdf")
|
||||||
# echo $result
|
[ "$?" -eq 0 ]
|
||||||
# output=$(echo "$result" | grep "asdf")
|
[ "$output" != "" ]
|
||||||
# [ "$?" -eq 0 ]
|
}
|
||||||
# [ "$output" != "" ]
|
|
||||||
#}
|
|
||||||
|
|
||||||
@test "does not add paths to PATH more than once" {
|
@test "does not add paths to PATH more than once" {
|
||||||
result=$(fish -c "
|
result=$(fish -c "
|
||||||
|
Loading…
Reference in New Issue
Block a user