mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: set home dir to test env in gh-r tests (#582)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
2e7b9aa29e
commit
9b33288b4a
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
|
||||
@setup {
|
||||
HOME="$ZPFX" # Stops programs creating directories in user home
|
||||
export ZBIN="${ZPFX}/bin"
|
||||
export os_type="${OSTYPE//[0-9\.]*/}"
|
||||
zinit default-ice --quiet from'gh-r' nocompile lbin''
|
||||
|
|
@ -77,7 +78,7 @@
|
|||
[[ $OSTYPE =~ 'darwin*' ]] && skip "on $os_type"
|
||||
run zinit for @imsnif/bandwhich; assert $state equals 0
|
||||
local bandwhich="$ZBIN/bandwhich"; assert "$bandwhich" is_executable
|
||||
run $bandwhich --version; assert $state equals 0
|
||||
run $bandwhich --help; assert $state equals 0
|
||||
}
|
||||
@test 'bat' { # A cat(1) clone with wings
|
||||
run zinit for @sharkdp/bat; assert $state equals 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue