mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
test: reshim of plugins installed by path (#1287)
Co-authored-by: Benchi Lian <benchi.lian@thoughtworks.com> Co-authored-by: James Hegedus <jthegedus@hey.com>
This commit is contained in:
parent
8108ca6d7e
commit
d28b13a8c7
@ -157,3 +157,19 @@ EOM
|
|||||||
run grep -v 'borked_path_due_to_homebrew_update' "$dummy_shim"
|
run grep -v 'borked_path_due_to_homebrew_update' "$dummy_shim"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "reshim should allow local path versions" {
|
||||||
|
run asdf install dummy 1.0
|
||||||
|
|
||||||
|
mkdir -p "$ASDF_DIR/installs/dummy/path/bin/"
|
||||||
|
touch "$ASDF_DIR/installs/dummy/path/bin/dummy"
|
||||||
|
chmod +x "$ASDF_DIR/installs/dummy/path/bin/dummy"
|
||||||
|
|
||||||
|
run asdf reshim dummy "path:$ASDF_DIR/installs/dummy/path"
|
||||||
|
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
run grep "asdf-plugin: dummy 1.0" "$ASDF_DIR/shims/dummy"
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
run grep "asdf-plugin: dummy path:$ASDF_DIR/installs/dummy" "$ASDF_DIR/shims/dummy"
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user