diff --git a/.travis.yml b/.travis.yml index e180ba6..a478138 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,5 +17,8 @@ install: jobs: include: - - stage: Test Wrapper - script: fish test/wrapper.fish \ No newline at end of file + - stage: General Wrapper Tests + script: fish test/wrapper.fish + - stage: Ticket-specific tests + script: + - bash -c "sdk install crash 1.3.0; sdk uninstall crash 1.3.0"; fish test/10_zombies_new.fish \ No newline at end of file diff --git a/conf.d/sdk.fish b/conf.d/sdk.fish index c03a755..6b59ef0 100644 --- a/conf.d/sdk.fish +++ b/conf.d/sdk.fish @@ -17,8 +17,8 @@ if test -f "$sdkman_init" # This is a subshell, SDKMAN! binaries already in path. case '*' # No SDKMAN! in PATH yet, so add candidate binaries - for ITEM in $HOME/.sdkman/candidates/* ; - set -gx PATH $PATH $ITEM/current/bin + for ITEM in $HOME/.sdkman/candidates/*/current ; + set -gx PATH $PATH $ITEM/bin end end diff --git a/test/10_zombies_new.fish b/test/10_zombies_new.fish new file mode 100644 index 0000000..ff928a6 --- /dev/null +++ b/test/10_zombies_new.fish @@ -0,0 +1,9 @@ +switch "$PATH" +case "*sdkman/candidates/crash/*" + echo "Uninstalled candidate in PATH" + sdk list crash | head -10 + echo $PATH + exit 1 +case "*" + echo "OKAY" +end